I have 2 servers Sybase 12.5 ,the application is in Java and I received frecvently this message for one server and the parameters size of process object heap' and 'size of shared class heap'.
it's the same for both servers:
Cannot execute this operation due to
insufficient memory in the Java heap(s).
execute this operation due to insufficient memory in the Java heap(s).
If I restart the server every things it's ok..but how can I do a script for "cleaning" memory.
Almost certainly, the root cause of the problem is not that "Java needs its memory cleaned," but that your program is caught in an endless-loop or an endless-recursion which results in it, eventually, exhausting available memory.
In this case, the error-message you see is only descriptive of "how the patient eventually died," not "why" or "how to fix it." Every patient dies 'because' "his heart stopped."