on ‎2010 Nov 09 2:35 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.