inspection build hanging

I've just set up a build configuration to perform code inspection. Unfortunately it hangs whenever TeamCity executes the inspections, always at 54%. One execution resulted in an OutOfMemoryError rather than a hang, so I tried increasing the amount of memory available to the code inspection process, to no avail. I've attached a thread dump at the point at which the inspection hangs.

Is there anything I can do about this?

This is using TeamCity 3.1.2 running on RHEL5.

Thanks...



Attachment(s):
teamcity inspection thread dump.txt
10 comments
Comment actions Permalink

It would be more helpful to get hprof file. Try to add -XX:HeapDumpOnOutOfMemoryError JVM option at the same place where you specified -Xmx. If OOM error occurs again an hprof file must be created in the build checkout directory on agent. Please send it to us: http://www.jetbrains.net/confluence/display/TCD3/ReportingIssues#ReportingIssues-sendingLargeFiles

--
Pavel Sher

0
Comment actions Permalink

I've run this again and am currently uploading the hprof file to java_256.hprof. I've attached another thread dump as this one looks a bit different to the previous one that occurred during a hang. I suspect two different problems now...



Attachment(s):
teamcity inspection thread dump.txt
0
Comment actions Permalink

What is the size of hprof file?

--
Pavel Sher

0
Comment actions Permalink

Pavel,

It is 79,741,187 bytes. I apologise- I should have compressed it prior to transmission.

Kevin.

0
Comment actions Permalink

There is no problem with compression. The size of 76M means that -Xmx JVM parameter is not specified. Try to increase memory for inspection runner, usually it requires more memory.

--
Pavel Sher

0
Comment actions Permalink

That's odd- I've specified parameters of:

-Xmx512m -XX:+HeapDumpOnOutOfMemoryError

... and the build agent seems to be observing the heap dump parameter. I've run the agent again, and this time it failed with an OutOfMemoryError at 54% again. I've uploaded a new hprof file to java_pid13782.hprof.gz (compressed this time) but the original size was only 80M.

I've specified parameters in the "JVM command line parameters" field on the Inspections build runner- I assume that this is the correct place?

0
Comment actions Permalink

JVM commandline parameters is the correct place. Probably OOM error is caused by perm gen space, try to add -XX:MaxPermSize=120m and see what happens.

--
Pavel Sher

0
Comment actions Permalink

Pavel,

Thanks very much- that fixed it. I am happy now :)

0
Comment actions Permalink

HI!
We had the same problem - our build with inspections hung at 54%. We set -Xmx512m -XX:MaxPermSize=120m to 'JVM command line parameters', not project doesn't hang. But we have another problem - it seems it inspects only xml-files, we see no code inspection. Could you please help?

(M.b. it's important: project file type in this project is Maven2)

0
Comment actions Permalink

Could you please help to resolve our problem?

0

Please sign in to leave a comment.