-
1. Re: Jboss AS 7.1.3.Final memory consumption, possible memory leak?
wdfink Jul 15, 2013 5:01 AM (in response to puthi)1 of 1 people found this helpfulHello Puthi,
welcome to the forum.
It is not clear to me what you mean by the given tables, what you mean by Start_Mem Mem_JB_RUNNING and MEM_JB_STOP?
Did you mean the OS memory consumption?
If you deploy/undeploy applications you can not be sure whether the JVM free the memory. Maybe force GC with the JVM console might help, but you can not be 100% sure whether the consumption is correct.
If the PermGen is complete used after a couple of restarts it look like that your application keep some references and classes are not correct unloaded.
You need to investigate a bit more. Maybe a heapdump will help you can use a Profiler (i.e. jProfier or jMat) and check what classes keept in the memory to have an idea what the root cause can be.
-
2. Re: Jboss AS 7.1.3.Final memory consumption, possible memory leak?
puthi Jul 15, 2013 6:27 AM (in response to wdfink)Hi,
Thanks for responding
It is not clear to me what you mean by the given tables, what you mean by Start_Mem Mem_JB_RUNNING and MEM_JB_STOP?
Did you mean the OS memory consumption?
A: The memory in the tables are the OS Memory.
for the 1st and 2nd test:
Start_Mem: is the OS memory i note before starting to test, and JB is not running
Mem_JB_Running: is the OS memory I note during the JB is running
Mem_JB_Stop: is the OS memory I note after I stop JB
For the third test
Mem_jboss: is the OS memory when jboss start without any application deployed
Mem_app_deployed: is the OS memory after i deploy my application.
Mem_app_undeployed: is the OS memory after i undeployed my application.
If the PermGen is complete used after a couple of restarts it look like that your application keep some references and classes are not correct unloaded.
You need to investigate a bit more. Maybe a heapdump will help you can use a Profiler (i.e. jProfier or jMat) and check what classes keept in the memory to have an idea what the root cause can be.
A: the PermGen fill up only if i keep deploying and redeploying without restarting JB, but if i restart JB the PermGen get reset as well.
With the above JVM setting, if I keep restarting JB, the RAM on my server will be used up and the OS's swap will be used little by little.
I'll try the tool you suggest and let you know the result after that.
Let me know if you need anything else.
Thanks