Atomikos Forum

Excessive Memory Allocation - StringBuffer.append()

I just got finished with a load test against my app.  We're testing out Atomikos to see if it works for us.

It's OK in some ways but the memory allocation (no leak) is out of control.  Watching with JProfiler, it appears that Atomikos makes heavy use of StringBuffer.append() and StringBuffer.toString(). 

The result is that Atomikos allocates more memory (by far!) than the entire rest of our software combined. 

During the course of a <2hr load test it allocated over 140mb. 

Anything I can do to cut this way down?
Jeff Nadler Send private email
Sunday, August 01, 2010
Without profiling images and more context this is hard to diagnose. Maybe you can try setting to the log level to WARN, not DEBUG?

Guy Pardon Send private email
Monday, August 02, 2010
Logging level is set to WARN via spring config:
    <prop key="com.atomikos.icatch.console_log_level">WARN</prop>

This forum doesn't seem to allow upload of file attachments, I can probably post some profile screen captures to the web.
Jeff Nadler Send private email
Thursday, August 05, 2010
Let's continue this thread by email - cf your mailbox:-) We can exchange attachment there...
Guy Pardon Send private email
Monday, August 09, 2010
FYI - this has been fixed in our code and will be included in the next release. I will let you know, but should I forget: make sure to try the next release if you can :-)
Guy Pardon Send private email
Sunday, September 26, 2010

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics