Java process memory shows a steady increase.

We are running a web based application & below are the details.

App Server : Websphere Application Server 5.1 Fix pack 12.

Linux , JDK 1.4.2_03, 2 CPU, 4 GB RAM.

The min heap set is 256 M and Maximum is 1024m.

When we start our application and we more users login, we see the Java process memory keeps increasing.

The memory never decrease and at one stage, the application crash. To our surprise, when this is happening, there is no out of memory or java core / heap dump file generated.

We enabled the verbose GC and found that GC behaviour is proper, and the same was analysed by a GC Analyser tool from IBM.

Also we generated the core dump file and saw no objects in a deadlock condition also.

This is giving me no clue of why this issue is happening. One thing noticed is the memory increase is wrt to the usage of the application.

We have installed this aplication in 3 locations and in location A, where the usage and volume of data entered is significant, the gropwth of memory is also significant. The other area has teh same issue, but there is still a growth of memory.

I came across another tool from IBM, where using the java core, we can see what is the maximum limit to be set for the classes (Xk and Xp partametrer) and it states that the issue is due to the dosed and pinned objects residing in memory.

Can this be a solution to this issue or it is a native memory leak.

We use Db2 as the backend and the database is in a seperate server.

To avoid the issue for time being we are restarting the application once in 2 days, where it reaches 1 GB in 2 days.

Please help on this.

[1689 byte] By [je22chapa] at [2007-11-27 7:54:37]
# 1

Frank Kieviet has some nice info about memory leaks in his weblog http://blogs.sun.com/fkieviet/entry/classloader_leaks_the_dreaded_java perhaps you can find some clue there. The link refers to one article, but there are more about memory issues. I found it useful to my project, I hope it helps u too.

gl.

Xtremebcna at 2007-7-12 19:35:55 > top of Java-index,Java HotSpot Virtual Machine,Specifications...