We are using a java application which is running in a 3.2.5 jboss version and it is working fine. Some time what happens is even though people are not using application much then also free memory reduces to 300 mb from the actual 1024 mb ( Shown in Web-Console). Is there any way to find out the memory leakage in the system. Is it possible to get what all are running in that jboss during that time.

You can find out what the app server is doing at any point in time by taking a thread dump and examining the stack trace for each thread.

As far as memory is concerned, what you are noticing does not strike me as an issue - a single request that allocates a lot of objects, such as for a daily/weekly/monthly report, can cause such a spike in memory usage.

"PeterJ" wrote:You can find out what the app server is doing at any point in time by taking a thread dump and examining the stack trace for each thread.

In my system thread dump is not possible. Because i have configured my log using log4j. So as per old conversation it is not possible to generate dump in that.

"PeterJ" wrote:As far as memory is concerned, what you are noticing does not strike me as an issue - a single request that allocates a lot of objects, such as for a daily/weekly/monthly report, can cause such a spike in memory usage.

Yes, When it becomes below 300 system becomes slow. I am asking is it possible to get what all are happening in the application server in a particular period. I know that the application programs which executes is making the issue. But i don't how to identify which program takes more memory.

What do you mean? I gave you a few suggestions for things you could try, and you indicated that none of those were possible. You mentioned a prior discussion but gave no link to that discussion. (No, I will not search for that discussion - it is your responsibility to provide clear information so that we can help you solve your problem.) So if you cannot do the things that would help you, what would you have me do?

But i don't how to identify which program takes more memory.

Either use a memory profiler (jmap, VisualVM, Eclipse MAT), or run one app at a time. Hmm, you have AS 3.2.5, which JDK? Most of the tools I am familiar with need JDK 5 or 6. And what OS?

What do you mean? I gave you a few suggestions for things you could try, and you indicated that none of those were possible. You mentioned a prior discussion but gave no link to that discussion. (No, I will not search for that discussion - it is your responsibility to provide clear information so that we can help you solve your problem.) So if you cannot do the things that would help you, what would you have me do?

Sorry Peter i extreamly sorry for the trouble, and also i apologize for the late reply.

"PeterJ" wrote:

Either use a memory profiler (jmap, VisualVM, Eclipse MAT), or run one app at a time. Hmm, you have AS 3.2.5, which JDK? Most of the tools I am familiar with need JDK 5 or 6. And what OS?

My jdk is 5 and os is linux. If i am using one of the profiler is it required to increase anthing in my server level

Good. You can use the jmap utility to dump the heap. And install VisualVM - you can download it separately or get it as part of JDK 6 (yes, you can have both JDK 5 and 6 installed at the same time and still use JDK 5 for JBoss AS - just set JAVA_HOME correctly.) Use VisualVM to load the heap dump - it has pretty decent tools for examining the heap contents.