java.lang.OutOfMemoryError
Hello
I'm posting here becouse I'm now desperate and may be someone here could help
I'm experiencing a problem with my app, it's running un Tomcat 4.1 with java 1.4.2_12 and I'm getting java.lang.OutOfMemoryError when it tries to process something in the range of 5000+ registers.
I've tries setting CATALINA_OPTS and also writing catalina.bat itself with configurations, setting Xms256m, Xmx512m, and XX:PermSize, XX:MaxPermSize and XX:MaxDirectMemory with values from 256 to 512m and still have no results.
Does anyone know any other ideas i could try or how could I find out what type of memory is my app running out of? On the server, tomcat4.exe proccess doesn't seem to be using more than 130M at any time.
Thanks.
[764 byte] By [
Metallana] at [2007-11-27 11:17:52]

# 1
> I'm experiencing a problem with my app, it's running
> un Tomcat 4.1 with java 1.4.2_12 and I'm getting
> java.lang.OutOfMemoryError when it tries to process
> something in the range of 5000+ registers.
what do you mean exactly with the word 'registers' ?
# 2
I mean the data i manage in the app.
here's the discussion on the general forum if you wanna try to help me still
http://forum.java.sun.com/thread.jspa?threadID=5197473
# 3
Run with -XX:+PrintGCDetails and you'll get garbage collection logging with output
such as
[GC [DefNew: 1792K->0K(1984K), 0.0032815 secs] 5300K->3549K(6080K), 0.0033800 secs]
[Full GC [Tenured: 3549K->235K(4096K), 0.1084840 secs] 5053K->235K(6080K), [Perm : 16383K->3087K(16384K)]
Here the GC is starting with a heap with 5053K worth of objects before the collection
and 235K worth of objects after the collection (second line). If the OutOfMemoryError is
due tot the Java heap you'll see something like
6080K->6080K(6080K)
which shows that no garbage was found and the heap is full. Similarly with
the perm generation. If you see
16383K->16383K(16384K)
then your perm generation is full.