Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Handle leak in JBE on Ubuntu

Hi,

My team started using RTC 1.0.1.1 recently to do source code control, defect tracking, and builds. So far the integration is beautiful. Thanks to the Jazz team for a great product.

Unfortunately, we have a build engine running on a Ubuntu 8.04 box that gets the dreaded "Too many open files" errors once in a while, forcing us to regularly restart jbe. The problem always occurs during file fetching at the beginning of the build. Playing around with the lsof utility showed that jbe appears to be leaking handles for each build, somewhere in the neighborhood of 30 to 40 each time.

I read the advice here https://jazz.net/wiki/bin/view/Main/JazzDevPitfalls and checked the linked defects 28447 and 19943, but neither of them seem to describe the leak I'm seeing. Bumping the handle limit is ok if the process needs a large number of handles for a short period of time. But it does not seem suitable if handles are being leaked.

Any advice you can give me? Upgrade my RTC version? Run cron to restart jbe every night ?

thanks,
Charlie

0 votes



4 answers

Permanent link
csurface wrote:
Hi,

My team started using RTC 1.0.1.1 recently to do source code control,
defect tracking, and builds. So far the integration is beautiful.
Thanks to the Jazz team for a great product.

Unfortunately, we have a build engine running on a Ubuntu 8.04 box
that gets the dreaded "Too many open files" errors once in
a while, forcing us to regularly restart jbe. The problem always
occurs during file fetching at the beginning of the build. Playing
around with the lsof utility showed that jbe appears to be leaking
handles for each build, somewhere in the neighborhood of 30 to 40
each time.

I read the advice here
https://jazz.net/wiki/bin/view/Main/JazzDevPitfalls and checked the
linked defects 28447 and 19943, but neither of them seem to describe
the leak I'm seeing. Bumping the handle limit is ok if the process
needs a large number of handles for a short period of time. But it
does not seem suitable if handles are being leaked.

Any advice you can give me? Upgrade my RTC version? Run cron to
restart jbe every night ?

thanks,
Charlie

What version of java are you running?

0 votes


Permanent link
Here's a little more info. I ruled out anything leaking in my build script by reproducing the problem against a simple build script with one target that only does an echo. Given that, I think there's an issue here that needs a defect. I'll post lsof output there in case it can help.

0 votes


Permanent link
Here's a little more info. I ruled out anything leaking in my build script by reproducing the problem against a simple build script with one target that only does an echo. Given that, I think there's an issue here that needs a defect. I'll post lsof output there in case it can help.


Hi can you post the output of ulimit -a ?
Thanks,

0 votes


Permanent link
The issue is resolved. I opened the following defect:

https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=83855

There was a known leak in the JVM I was using. After a quick chat with one of the Jazz developers, I ended up downloading and installing the JVM from RTC 2.0 RC1.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 15 '09, 3:43 p.m.

Question was seen: 4,425 times

Last updated: May 15 '09, 3:43 p.m.

Confirmation Cancel Confirm