OutOfMemory when creating nunit build feature through API


I've received the following error when making a post to TeamCity API to create a build feature (nunit) on a build configuration.

"java.lang.OutOfMemoryError: unable to create new native thread
 at java.lang.Thread.start0(Native Method)
 at java.lang.Thread.start(Unknown Source)
 at com.sun.jndi.ldap.Connection."

Currently on Diagnostics page, I get the following information which seem fine.

Data: 656.94 MB (61.6% of maximum available memory: 1.04 GB)
Classes: 114.18 MB (42.3% of maximum available memory: 270.00 MB)

The memory dump is in the .uploads jetbrains ftp folder called "memoryDump-2013-11-11_12.49.50.hprof.gz".

we have 2796 active projects with 2907 build configurations, 7 permenent build agents and 10 cloud agents.

Any help greatly appreciated!
1 comment
Comment actions Permalink

Hi SImon,

This error (unable to create new native thread) does not seem to be related to the REST API call, it probably occurs on other events and shhhould be visible itn he teamcoty-server.log

What -Xmx setting do you use for the TeamCity server JVM?

Pleae consider moving to 64 bit JVM for the server.


Please sign in to leave a comment.