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

  • Home
  • SEARCH
  • 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 7367991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T03:36:29+00:00 2026-05-29T03:36:29+00:00

I keep running into OOM errors and subsequent JBoss crashes, even though the heap

  • 0

I keep running into OOM errors and subsequent JBoss crashes, even though the heap shows that all of the memory allocated to it isn’t used up.

For eg: If I have 1200MB allocated as the heap size (Xmx), crashes occur well below that limit with none of the individual generations in the heap (young / old / perm) at a 100%.

The box has plenty of RAM. Why might java be reporting this error when its really not out of memory?

 Heap

 PSYoungGen      total 67456K, used 9525K [0x57540000, 0x5c170000, 0x5fa90000)
  eden space 66432K, 12% used [0x57540000,0x57d91520,0x5b620000)
  from space 1024K, 98% used [0x5c070000,0x5c16c198,0x5c170000)
  to   space 3008K, 0% used [0x5bb90000,0x5bb90000,0x5be80000)

 PSOldGen        total 466048K, used 313530K [0x14a90000, 0x311b0000, 0x57540000)
  object space 466048K, 67% used [0x14a90000,0x27cbea38,0x311b0000)

 PSPermGen       total 226432K, used 141461K [0x04a90000, 0x127b0000, 0x14a90000)
  object space 226432K, 62% used [0x04a90000,0x0d4b55e8,0x127b0000)
  • 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-29T03:36:30+00:00Added an answer on May 29, 2026 at 3:36 am

    Yes it is possible to get an OOME when you’ve still got plenty of free heap space.

    When you create a thread the JVM needs to allocate memory for the thread’s stack. However the JVM doesn’t allocate the thread stack in the heap. (The thread stack needs to be in memory that won’t be moved by the garbage collector.) Instead, it requests it directly from the OS. If the OS can’t satisfy that request, you get an OOME … irrespective of your heap size.

    Apparently, an OOME can also occur during thread creation if your application exceeds the operating system’s per-process thread limit. (On Linux / Unix this is controlled by ulimit -u …)


    It is a bit difficult to say what is happening in your case. I suspect that your application is simply trying to create too many threads and running into one of the limitations above. You could try reducing the thread stack size, but a better approach would be to figure out why you are creating so many threads and stop it. (Huge numbers of threads tend to waste resources … and make your application slower in various ways.)

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

Sidebar

Related Questions

Hello I keep running into errors and outputs that say undefined in my output
I keep running into all sorts of nuances between the web site project versus
A problem I keep running into when writing code that draws images of scientific
im trying to fix this while loop but keep running into errors. Basically lets
I'm a little confused with an issue that I keep running into. I'm trying
I keep running into this design problem, and I'm not happy with my solution
I keep running into enq: TX - row lock contention, when I run the
I keep running into this error MemCacheError (Broken pipe): Broken pipe on my Rails
Here's a problem I keep running into: I have a lot of situations where
I've been using RhinoMocks lately but I keep running into an issue. If I

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.