B4J Question Great memory load by B4J server and B4J server with ABMaterial.

MichalK73

Well-Known Member
Licensed User
Longtime User
Hello.

I have a question if this is actually up to such a great memory load by 2 java processes on a simple VPS server?
I mean the first 2 processes from the top: webrobole.jar and workserver.jar. The first is in the ABMaterial framework, the second server console with 10 handler. Both connected to Mysql database locally.

view

Link scrennshot from WebMin.
https://drive.google.com/file/d/0B8Q7sAIuuROBajlqVXEwblAwT2s/view?usp=sharing
 

alwaysbusy

Expert
Licensed User
Longtime User
I think what you're seeing there does not really represent the physical memory usage of the app, but includes all shared and virtual reserved memory too. The real physical usage is probably something around 130MB.

If you have access to the server with an SSH tool like Putty:

1. install htop (sudo apt-get install htop)
2. run jcmd to find the PID of your app (e.g. in my case 2772)
3. run htop, find your PID and look at the RES column (what you see in your tool is probably VIRT + RES + SHR, which in my case would be 4GB+) while in reality it is 132MB.

upload_2017-3-23_7-36-59.png
 
Upvote 0

MichalK73

Well-Known Member
Licensed User
Longtime User
Yes.

Now that's what I discovered. The webmin displays virtual memory instead of real RAM.
I checked the 'top' command in the console for java processes.
One has 82Mb of RAM used (ABMaterial, about 10 simple page).
The second one has 61Mb of RAM used (B4J server, about 15 handler with JSON)
She hooked to Mysql.
So no panic it's just a bad indication by webmin.

Thank you all for your help.
 
Upvote 0
Top