Skip to main content

Glass fish stop responding when its memory usage is becoming about 600,000 MB

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
7 replies [Last post]
melakubk
Offline
Joined: 2011-09-03
Points: 0

Dear all users, My team has developed large Patient Management System for large hospital. using java/jsp web application. and we have 8 GB memory and 8 GHZ processor server. And we have already deployed the web application using the glass fish on the server and it stared working. And many users >100 user are using it simultaneously and it works fine. but after it works for maximum of 2 hour it stops working i mean it get busy and when we look at the server in task manager the java memory size reached around 600,000MB and the process get the pick value. and we immediately stop the glass fish default server and start it again and it starts working well. look what makes bother us is why it required us to restart the glass fish when it get busy. pleas do you have any suggestion to our server run with out problem. I am in trouble please respond me with your answer. with regards.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
marco_java
Offline
Joined: 2009-01-08
Points: 0

How much memory did you give to glassfish? If you did not change the original startserver script then you might add the -Xmx parameter to java. Do you run on 32 bits or on 64 bits? 32 bits can only go to 1024Mb. Also check for the PermGen memory (-XX:MaxPermSize) if you get error messages like java.lang.OutOfMemoryError: PermGen space.

Hope this helps you,

Marco

alexismp
Offline
Joined: 2005-01-06
Points: 0

Is there anything interesting in the glassfish server log?

A thread dump on such a hung system should be the first thing you try.
I assume you're on windows, so "jstack" would probably the easiest way to get the thread dump.

Also what are the exact versions for GlassFish and the JVM?
Ideally the section of your domain.xml would also be useful.

-Alexis

On 4 sept. 2011, at 10:50, forums@java.net wrote:

> How much memory did you give to glassfish? If you did not change the original
> startserver script then you might add the *-Xmx* parameter to java. Do you
> run on 32 bits or on 64 bits? 32 bits can only go to 1024Mb. Also check for
> the PermGen memory (-XX:MaxPermSize) if you get error messages
> like /java.lang.OutOfMemoryError: PermGen space/.
>
> Hope this helps you,
>
> Marco

melakubk
Offline
Joined: 2011-09-03
Points: 0

Dear Marco, I thank you for your helpful replay. we are now got fixed almost 50% of our problem because of your answer. Here I come up with another question. look while our application starts its job the java memory usage in the server increases and I think it's normal but the problem is the memeory usage of the java in the server do not decrease when there is almost no one who is using our application. therfore we forced to restart the glass fish every morning. why the java memory usage do not decrease when there is no interaction ( when there is no user) for example the whole night the hospital don't use the sysetm but in other day when we say the memory usage of the java it is as it was increased). I mean i am afraid wather the GC garbage collector is working or not.

Do you have any suggestion. I really thank you for you help.

marco_java
Offline
Joined: 2009-01-08
Points: 0

I am glad I could be of some help.

I am not a specialist on GC. I googled a bit on glassfish garbage collection and I came to download.oracle.com/docs/cd/E18930_01/html/821-2431/abeic.html. I hope that this helps you a bit. Let us know what you did.

Regards,

Marco

melakubk
Offline
Joined: 2011-09-03
Points: 0

Dear Marco, warm greetings,
I first thank you for your helpful replays. my problem is now almost fixed by changing my glass-fish to 64 bit and the server OS 64 bit. but we are left with one problem that is some of our system functionalities do not exactly work as they ware smoothly work in glass fish and OS 32 bit. for example we have drug request ion approval page and on that page we have list box which contains list of requested drugs. and when some one clicked on one of the requested list it automatically displays the detail of the request on the table on the same page with the help of ajax. this example works fine in previous glass fish (32 bit) but now it could not work. when we clicked on the requested drug it display nothing. do you have any suggestion. thank you.

melakubk
Offline
Joined: 2011-09-03
Points: 0

Re:

Dear Marco, warm greetings,

I first thank you for your helpful replays. my problem is now almost fixed by changing my glass-fish to 64 bit and the server OS 64 bit. but we are left with one problem that is some of our system functionalities do not exactly work as they ware smoothly work in glass fish and OS 32 bit. for example we have drug request ion approval page and on that page we have list box which contains list of requested drugs. and when some one clicked on one of the requested list it automatically displays the detail of the request on the table on the same page with the help of ajax. this example works fine in previous glass fish (32 bit) but now it could not work. when we clicked on the requested drug it display nothing. do you have any suggestion. thank you.

melakubk
Offline
Joined: 2011-09-03
Points: 0

Dear Marco, warm greetings,

I received a reply from you in my e-mail to my last question but when i open the subject i saw nothing. would you send me your latest replay again?

Thanks.