Memory usage
Anybody else seeing huge memory usage for the TeamCity server?
I have been running build 1631 since this morning (under Linux) and top
is currently showing VIRT 2762m / RES 774m
I'm all for taking advantage of virtual memory, but that seems a bit
much to me. Is it to be expected? If not, is there a profiling option I
can enable?
R
PS Update - I launched another few builds and RES went up to 843m before
going back down to 708m. I stopped one of the builds and VIRT went up to
3000m. RES was at about 800m and then Tomcat crashed in some native code.
Please sign in to leave a comment.
Hi Robert,
What kind of builds do you run? What are your memory settings?
To debug OOM errors, I'd reccomend the following:
- Setup JDK 1.5.0_08 on the server computer
- add options -XX:+HeapDumpOnOutOfMemoryError -Xmx500m to the JAVA_OPTS env. variable parameters
in TeamCity/bin/catalina.sh
With such options java will generate hprof file with memory information at the moment of OOME.
If you upload this file to our ftp site ftp://ftp.intellij.net/.uploads we'll be able to
research the problem in detail.
Please don't use Xmx > 500m, because I'm afraid we won't be able to open corresponding memory
dump file.
Hope this helps,
KIR
Robert Gibson wrote:
--
Kirill Maximov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"
I have 2 projects:
- trunk project with 4 builds: 1 IPR build with no tests, 1 IPR with
tests, 1 Ant build, 1 Inspection build. The first 3 builds are triggered
on VCS checkin, the Inspection build I run occasionally manually and is
triggered at 3am
- branch project with 1 IPR build with no tests
I have two agents, one running on the local machine and one on a remote
machine. My version control system is Subversion and I'm running with
JDK 1.5.0_08.
I haven't touched the startup parameters apart from changing the
location of .BuildServer, so it's running with Xmx300m I guess. I'm not
actually getting any OOME, it's just that my machine starts to swap heavily.
Thanks,
Robert