1

I have a 32 bit debian machine running and want to increase my tomcat's memory. I tried this:

export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xms1024m -Xmx1536M -XX:PermSize=1024m -XX:MaxPermSize=1536m" but i still get this error

Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

Why is that? I know 32 bit can only use up to 2g but 1.5 should easily work...

SYSTEM: DEBIAN WHEEZY 32 BIT
JAVA: ORACLE JAVA 7u55 32bit
Sandeep Chatterjee
  • 3,200
  • 7
  • 29
  • 47
Killerpixler
  • 4,002
  • 10
  • 37
  • 78

2 Answers2

3

Xms and Permsize add up (see https://stackoverflow.com/a/1634424/821202), so you try to allocate 1024m + 1024m = 2048m initially.

Community
  • 1
  • 1
michael667
  • 3,216
  • 22
  • 32
0

My JVM config for a SUSE 32 bit and is working fine:

-Xms1536m -Xmx1536m -XX:PermSize=128m XX:MaxPermSize=256m
Omoro
  • 962
  • 11
  • 22