Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have been developing a flex application and noticing that my Glassfish server seems to be using more and more memory each time I tested the application.

Specifically, it seems that to take more memory each time it runs .java files that query from SQL database (just select). Even though, it's basically the same operation it seems that after I test my application for 30+ times it stopped responding and I have to restart the server.

Does anyone know what's wrong?

share|improve this question
    
Check for an increasing number of applications that don't exit, using PS and/or TOP for the web server user. Also check for any one process that keeps getting bigger. –  kmarsh Dec 15 '09 at 13:58
    
Sorry but what are PS and TOP? I'm still a newbie when it comes to java server. –  Pii Dec 15 '09 at 14:59
    
Unix shell commands. Top shows you all the running processes and the CPU and basic memory info while ps shows you the specific process status. –  Cromulent Dec 15 '09 at 17:02
    
I'm using Windows and the task manager says that java.exe uses 50% of CPU and 500+ MB of RAM. It starts with 70 MB of RAM and slowly increases until it hits 500+ then the app slows down drastically. –  Pii Dec 17 '09 at 14:54

1 Answer 1

up vote 0 down vote accepted

Problem Solved: By re-writing .java each time query is made factory manager still stays on the server so I have to close it after I use it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.