Win a copy of Spring Boot in Practice this week in the Spring forum!

Ryan Rank

Greenhorn
+ Follow
since Aug 05, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ryan Rank

I found what I was looking for. this is the necessary launch script.

<PRE>
CLASSPATH=
JAVA_HOME=/usr/java14
CATALINA_HOME=/tomcat4
CATALINA_OPTS="-Xms###m -Xmx###m -verbose:gc -Xverbosegclog:/tomcat4/logs/GC.log -Xk22000 -Xp32768K,4096K -Xss256k -Xoss256k -Xcompactgc -Xgcpolicy:optthruput -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.rmi.dgc.client.gcInterval=3600000 -Djava.awt.headless=true"
IBM_HEAPDUMP=TRUE
IBM_HEAPDUMPDIR="/dumpstore"
IBM_JAVACOREDIR="/dumpstore"

export CLASSPATH
export JAVA_HOME
export CATALINA_HOME
export CATALINA_OPTS
export IBM_HEAPDUMP
export IBM_HEAPDUMPDIR
export IBM_JAVACOREDIR

[Launch Tomcat]
</PRE>

That allows for a kill -3 to output the heapdump.phd file as well as the javacore.txt files to the location desired.

Hopefully those in need can get some use out of this.
12 years ago
Not completely sure if this the right forum for this question. If not, please point me to the correct one.

My company is having an issue where a java app is encountering an OutOfMemory exception after about 8 hours of run time. After the intial load, it grows at a rate of about 100 megs per hour during core usage. During off hours, memory usage just plateaus. It should go down but does not...GC is pretty inneffective. The heap does not appear to be fragmented. This is a vendor application, so we are not able to look at the code. We've already engaged the vendor but are still running into some issues.

What we need to do is generate multiple heap dumps throughout the day before an OOM error is generated. I know that a kill -3 [pid] will do this, but that is only generating a javacore.txt file. I want the heapdump.phd file. How can this be generated on demand? I'm thinking that there is a command line option that I'm missing in my JAVA_OPTS.

IBM JDK 1.4.2
AIX 5.3
Tomcat 4.1.40 (don't think this makes a difference here)
12 years ago
Back to the vendor's court it is. Thanks for the assist!
13 years ago
I saw a couple similar threads, but nothing with a solution or didn't quite fit. If there is a thread with a solution, please point me to it.

I am working with a vendor supplied application (which I do not have access to the source code for) where the timeout settings are set to 30 minutes. The context web.xml file has the timeout setting at 30 minutes, and the /conf/web.xml has it set to 30 minutes as well. Idle sessions are sitting out there for hours on end until the heap runs out of memory and starts to dump. My only way out of this is to restart Tomcat.

Tomcat version 4.1.40
JRE is IBM 1.4.2

The vendor's support of Tomcat is a bit spotty; I'm starting to get a bit desperate.

Any input for this would be appreciated.
13 years ago