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 4606916
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:37:52+00:00 2026-05-22T00:37:52+00:00

In my process I continuously create a new Thread object (subclass of Thread actually)

  • 0

In my process I continuously create a new Thread object (subclass of Thread actually) (up to several per second), run it and cleanly end.

I have noticed that when the process has been up for 25 days for instance, the process can die leaving a hprof behind, so that means an OOM. But the heap dump is tiny compared to allocated memory to the heap, so it probably is a PermGen OOM, and I am trying to find out the culprit.

I am not using any special jvm param barring -XX:+HeapDumpOnOutOfMemoryError

  • 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-22T00:37:52+00:00Added an answer on May 22, 2026 at 12:37 am

    I’m answering this in order to bring closure. After much investigation, at least in my case, creation of very large number of thread was not the culprit of the OOM.

    I ruled it out in two ways:

    1. the issue was reported in another couple of instances and not many threads had been spawned in those cases.

    2. I created a test where I spawned over 2.5 million threads (doing the normal work they do in our case) and got no issue of OOM.

    So, the mere very large number of thread created is not an issue.

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

Sidebar

Related Questions

I have a process which gives me continuously output in Screen. I want to
I have a process that continuously needs to write information. Furthermore, there is a
I have a process where two threads are continuously executing sql queries on the
Process process = new Process(); ProcessStartInfo psi = new ProcessStartInfo(@C:/PsExec.exe); psi.UseShellExecute = false; psi.RedirectStandardOutput
Java lets you create an entirely new subtype of Throwable , e.g: public class
The process of creating a new build and releasing it to production is a
and thanks for taking a look at the question. The background I have several
OS: Linux(RedHat) Programming Language: C++ I need to create a daemon(process) for Linux using
I have the need to continuously build large strings in a loop and save
I'm using a vdproj to create a .msi file. I have a continuous integration

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.