Hi,
I see that the memory on my server is kept to 6<->7GB even no user is logged in. In the past I have read somewhere that it concerns a table form DB which gets huge.
Can someone point a suggestion on this?
Thank you,
Memory Issue - huge RAM consumed even no users logged in
Memory Issue - huge RAM consumed even no users logged in
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
Re: Memory Issue - huge RAM consumed even no users logged in
There is a table called Execution Contexts or some variation of that. You can search the forums about it. Not sure if it impacts memory or now.
Tom - V8.8 build 3137 - MySql / PostGres
Re: Memory Issue - huge RAM consumed even no users logged in
I had told George a while back regarding this table and clear it but he never followed up with me.tford wrote:There is a table called Execution Contexts or some variation of that. You can search the forums about it. Not sure if it impacts memory or now.
Rod, got to clear that table in one of threads and saw great improvements in memory.
Re: Memory Issue - huge RAM consumed even no users logged in
BenHayat wrote:I had told George a while back regarding this table and clear it but he never followed up with me.tford wrote:There is a table called Execution Contexts or some variation of that. You can search the forums about it. Not sure if it impacts memory or now.
Rod, got to clear that table in one of threads and saw great improvements in memory.
No results on my side.
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
-
- Posts: 7525
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
Re: Memory Issue - huge RAM consumed even no users logged in
Does the memory keep growing or it just uses this amount when you start the app? If so, there must be something huge in your app that gets loaded.
Aware IM Support Team
Re: Memory Issue - huge RAM consumed even no users logged in
When I start the app, everything is ok.aware_support wrote:Does the memory keep growing or it just uses this amount when you start the app? If so, there must be something huge in your app that gets loaded.
In the morning when users keeps login the memory increases to 6<->7GB of RAM (users are calling that the app is freezing, and I have to restart the app).
Strange thing that in the end-of-the-day the memory doesn't go down, so in the morning I have to restart the app to go fresh again.
Today I have made a remote session with a user and the app is slow when user search in drop-downs (For example I have a database of customers-> when I click on drop-down to search in archivefor a customer).
Any suggestion would be greatly appreciated !!!!
Thank you
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
-
- Posts: 7525
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
Re: Memory Issue - huge RAM consumed even no users logged in
There must be something in your app that causes this. You need to monitor what the users are doing and what's happening with memory - this will give you a clue which operation is causing the problem.
Aware IM Support Team
Re: Memory Issue - huge RAM consumed even no users logged in
aware_support wrote:There must be something in your app that causes this. You need to monitor what the users are doing and what's happening with memory - this will give you a clue which operation is causing the problem.
Ok. But how do you explain that after job hours when everyone leave the app, the RAM is not coming back to normal. What makes it to stay high?Something got stuck?
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
Re: Memory Issue - huge RAM consumed even no users logged in
At times we've found similar behaviour and tried at length to find one specific reason by monitoring the system usage over extended periods of time without any conclusive outcome. In the end, we have decided to use a small utility which constantly monitors the memory allocation and regularly cleans and resets it. We have now used this approach for all our windows servers for years with 100% success.
http://www.majorgeeks.com/mg/getmirror/cleanmem,1.html
http://www.majorgeeks.com/mg/getmirror/cleanmem,1.html
Re: Memory Issue - huge RAM consumed even no users logged in
Can you tell us a bit about how this works in the AwareIM environment?
Tom - V8.8 build 3137 - MySql / PostGres
Re: Memory Issue - huge RAM consumed even no users logged in
Cordin, when you say to clean up memory, do you mean, java objects that were created by aware and were never "Disposed"? Because this problem seems like there are certain types of objects created and as long as Aware is still hanging on to them (not disposed explicitly) Java runtime will keep those objects.codrin wrote:At times we've found similar behaviour and tried at length to find one specific reason by monitoring the system usage over extended periods of time without any conclusive outcome. In the end, we have decided to use a small utility which constantly monitors the memory allocation and regularly cleans and resets it. We have now used this approach for all our windows servers for years with 100% success.
http://www.majorgeeks.com/mg/getmirror/cleanmem,1.html
Now how does this tool know which objects to be disposed? Do you run this tool while Aware is running (which assume yes).
Re: Memory Issue - huge RAM consumed even no users logged in
It works on a double front, not only with AwareIM but any other app installed on the server. It will "clean" the allocated memory down to only what values are required by the system at that point in time. I am not entirely sure what exact process takes place in the windows environment, but I can assure you that it does not affect AwareIM user sessions or performance. It is almost as if Java's native garbage collection is invoked and executed. You can have it on a timer to execute every so many minutes ( we have ours set to 15 minutes ) and also to kick in when the max allocation of memory reaches a certain level ( ours is set to 85% ). Another welcome side effect of using it was the fact that we could increase the number of accounts on a given server by at least 20% with the same hardware configuration.
Re: Memory Issue - huge RAM consumed even no users logged in
Very interesting. Basically puts GC on steroids.codrin wrote:It works on a double front, not only with AwareIM but any other app installed on the server. It will "clean" the allocated memory down to only what values are required by the system at that point in time. I am not entirely sure what exact process takes place in the windows environment, but I can assure you that it does not affect AwareIM user sessions or performance. It is almost as if Java's native garbage collection is invoked and executed. You can have it on a timer to execute every so many minutes ( we have ours set to 15 minutes ) and also to kick in when the max allocation of memory reaches a certain level ( ours is set to 85% ). Another welcome side effect of using it was the fact that we could increase the number of accounts on a given server by at least 20% with the same hardware configuration.
Thank you Cordin!!!
-
- Posts: 7525
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
Re: Memory Issue - huge RAM consumed even no users logged in
Aware IM has been extensively tested for memory leaks. It is unlikely that this is the problem. Of course, we cannot rule out the leaks completely - there might be some rarely used operation that causes a leak. But it is still unlikely.
The fact that the memory is not released is not an indication of a leak, but could be an indication of a problem in your application - that's why you need to monitor it. You have to understand that Aware IM provides a framework but a lot depends on the application itself - this relates to both memory usage and performance.
Now Codrin's utility performs some magic at the operating system level - as a result it improves the performance of the Java garbage collector. The fact that it successfully cleans up memory indicates that Aware IM itself does not have a problem (otherwise, memory wouldn't have been released), but the operating system may not work as efficiently as it could. So the utility can be very useful as Codrin says.
It is possible that the utility will solve George's problem if it is indeed caused by the operating system. But it is also possible that it won't - if the problem is caused by the application itself.
The fact that the memory is not released is not an indication of a leak, but could be an indication of a problem in your application - that's why you need to monitor it. You have to understand that Aware IM provides a framework but a lot depends on the application itself - this relates to both memory usage and performance.
Now Codrin's utility performs some magic at the operating system level - as a result it improves the performance of the Java garbage collector. The fact that it successfully cleans up memory indicates that Aware IM itself does not have a problem (otherwise, memory wouldn't have been released), but the operating system may not work as efficiently as it could. So the utility can be very useful as Codrin says.
It is possible that the utility will solve George's problem if it is indeed caused by the operating system. But it is also possible that it won't - if the problem is caused by the application itself.
Aware IM Support Team
Re: Memory Issue - huge RAM consumed even no users logged in
codrin wrote:At times we've found similar behaviour and tried at length to find one specific reason by monitoring the system usage over extended periods of time without any conclusive outcome. In the end, we have decided to use a small utility which constantly monitors the memory allocation and regularly cleans and resets it. We have now used this approach for all our windows servers for years with 100% success.
http://www.majorgeeks.com/mg/getmirror/cleanmem,1.html
Hi Codrin and many thanks for your solution.
The cleanmem app indeed releases memory a lot, but right after the scheduler runs is about aprox 15 seconds time when the app is reloading, after that is running ok.
Regarding what support says, I will follow your optimization video and try to review my rules.
Thank you all.
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42