Skip to Content
avatar image
Former Member

Memory Usage Inside Transaction

Hi experts,

is there a way to monitor, inside the execution of a transaction, the amount of it's memory usage, or better the total amount of system/server memory used at a certain time? I created a tx which is using a really huge amount of memory and I'm thinking to a logic to end it when it is exceeding a certain limit.

best regards

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 17, 2010 at 11:16 PM

    Client side, if you open the java console & press "m", you'll see something like: Memory: 128,424K Free: 41,795K (32%) ... completed. Of course, your numbers instead.

    What operating system are you on with the NW instance? The JVM memory models depend on it .. and if I can say so, you're interested in some very low level info for MII to report with standard functions ..

    Server side,you can use a shell command to find out the free mem at the beginning of the transaction, certain specific/critical points and at the end. Then, you can get to the data by publishing it through a local webservice. Another option is to use Java Console logging mechanisms and anayze the logs at runtime. See http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      well, I wanted to create a mechanism inside a certain TX, which is "testing" memory usage (or free memory) to decide if to go ahead with transaction execution or not...maybe I could create local WS, with that shell command inside, then called inside inside TX, to decide about it's execution...