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,220
  • 9
  • 31
  • 47
Killerpixler
  • 4,200
  • 11
  • 42
  • 82

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,241
  • 24
  • 32
0

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

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