We have an application running on Jboss that's leaking memory and from to time to time, this causes the server to go into swap and crash.

I know the correct way to solve this is to find the root cause of the leakage, but at the moment I really need a workaround. As our number of requests are increasing, the outages are becoming somewhat frequent...

That said, do you know if there's a MaxRequestsPerChild equivalent for Jboss?

I work with the IT infrastructure and I'm not a developer nor a Java expert, so I can't sit and wait the developers fix the app (although I know they're working hard to do so) while my server goes down.

By the way, Jboss version is Jboss AS 4.0.5.

  • Which version of JBoss are you using? – qweet Mar 2 '12 at 22:36
  • Added on the question, @qweet – Luis Fernando Alen Mar 2 '12 at 22:46

In our environment, JBoss (both 4 and 5) uses threads rather than subprocesses to process queries so the question is irrelevant. If yours does fork, see docs/settings for the process pooler module used.

  • Very good point, @ivan_pozdeev. Indeed our JBoss uses threads instead of processes in order to respond to requests. So, should I assume a MaxRequestsPerChild equivalent in such scenario wouldn't help, since ending threads would not free up any memory managed by the main process? – Luis Fernando Alen Mar 6 '12 at 3:38
  • Exactly. <padding> – ivan_pozdeev Mar 6 '12 at 14:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.