Java lang out of memory

Hi,
whenever we open a big report(drill) in webi we are facing with ‘Java Lang of memory <>’ error and had restart tomcat 4.1.29(BO 6.1b) to work agian.any suggestions on changes to be made in the Tomcat to get rid of this error.
Thankyou.


cheedalla (BOB member since 2004-04-13)

Look under the registry key HKLM, System, currentcontrolset,services, then Apache Tomcat\parameters… Look for the XMX line, bump the max memory up - mine looks like this:

-Xmx1024m

If you don’t have an XMX line, bump up the number of parameters, just stick the above in a JVM Option Key …

Stop / restart tomcat and apache for that to take effect.

Good luck!
Brent


bdouglas :switzerland: (BOB member since 2002-08-29)

Bumped it to 1600mb,still no luck


cheedalla (BOB member since 2004-04-13)

find your webi.properties file, under Tomcat … Wijsp\web-inf, add or update these lines:

MAX_HEAP_SIZE=1000000000
XML_MAX_BYTES =100000000

You will have to stop / restart Tomcat for that to take effect, but it may help you. This protects your heap, if I understand it correctly. Probably don’t ; )

Good luck,
Brent


bdouglas :switzerland: (BOB member since 2002-08-29)

Are you on Windows Platform? Java 1.4.2 (supplied by Sun) can not utilize more then 1.5 GB of RAM on WIndows platform. Not sure about 1.5.x and later versions.

C:\Documents and Settings\shamitv>java -Xmx1024m -version
java version "1.4.2_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)

C:\Documents and Settings\shamitv>java -Xmx2000m -version
Error occurred during initialization of VM
Could not reserve enough space for object heap

Tomcat has a built-in application called “manager” you can ustilize that to monitor memory usage.


shamit (BOB member since 2004-07-01)

This situation is also discussed in this thread

Ok, so which is better, the change to webi.properties or the JAva command line option?

Or do I need to do both?

and if I do it in both then I assume the two nubmers should match. In making them match, does Java use 1000 for 1K or 1024 for 1K? I’ll need to know since Java uses “m” notation but the webi.properties seems to enumerate the bytes.

I’m running BO e6.1b on AIX 5.1 with Java version 1.3.1

Nice Halloween theme on the board by the way!


kbrazell :us: (BOB member since 2003-08-19)