Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7670469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:49:47+00:00 2026-05-31T15:49:47+00:00

My Java EE 6 application running on JBoss 6 has recently started having memory

  • 0

My Java EE 6 application running on JBoss 6 has recently started having memory problems.

Situation

  • Production server.
  • Small-medium sized application using JPA2/Hibernate with default caching settings. ~170 classes.
  • DB size ~1.8gb, 90% of it belonging to binary data simply fetched by servlets without any special caching.
  • Session timeout was recently increased from 2 hrs to 10.
  • JVM config: -Xrs -Xms1024M -Xmx1024M -XX:MaxPermSize=512M -Dsun.rmi.dgc.client.gcInterval=3600000 -server
  • JBoss running as service.
  • Almost all controller classes in ViewScope

Two questions with these facts in mind:

  • How would I troubleshoot these OOMEs? JConsole doesn’t find JVMs running as services. Ideally I’d have to be able to inspect relevent objects such as sessions to find the memory thief.

  • Could this OOME be legit, with the increased session timeout in mind, and the solution simply be to increase the heap size? The application has been in use since September 2011 without any earlier memory problems. Session timeout was drastically increased about two months ago.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T15:49:48+00:00Added an answer on May 31, 2026 at 3:49 pm

    It seems logical that a session will use a certain amount of memory in JBoss. Increasing the session time out will probably result in more sessions in memory at any one time – so you’ve probably increased the memory requirement of your application.

    The simplest (initial) resolution would be to increase the heap allocation to your application. For example, set -Xmx2g (this doubles the JVM memory to 2 GiB – your current setting is 1 GiB). Obviously, your system should have sufficient physical memory available.

    If this simply delays your OOMEs, you’ll want to analyse your heap. Enable:

    -XX:-HeapDumpOnOutOfMemoryError

    This will create a physical dump of the heap, for analysis. You may find you have a memory leak, or just that each application session has a certain memory footprint – then either limit the sessions or increase the memory allocation to suit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a Java web application running on JBoss and Linux. Production environment database
I have an Java application running in JBoss in which I have enabled JMX
I've got a pretty ordinary Java EE application running on JBOSS. It uses the
I've got a somewhat dated Java EE application running on Sun Application Server 8.1
We have a java application which run as server running on a remote windows
We have a Java EE-based web application running on a Glassfish app server cluster.
I have a java web application (running on JBoss), which need to authorizate users
We have a Web Java based application running on JBoss with allowed maximum heap
I just started working on upgrading a small component in a distributed java application.
I'm debugging an application on a remote server running JBoss using Eclipse. My particular

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.