Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2002
    Posts
    6

    Exclamation Unanswered: Heap memory error

    Hi,
    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).

    com.sybase.jdbc2.jdbc.SybSQLException: Cannot
    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.

    Thanks,
    Sorina

  2. #2
    Join Date
    Oct 2003
    Posts
    706
    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."
    ChimneySweep(R): fast, automatic
    table repair at a click of the
    mouse! http://www.sundialservices.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •