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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:20:37+00:00 2026-05-23T16:20:37+00:00

So I was monitoring a process using VisualVM and I clicked on Perform GC,

  • 0

So I was monitoring a process using VisualVM and I clicked on “Perform GC”, the process then died with error:

#
# A fatal error has been detected by the Java Runtime Environment:
#
# java.lang.OutOfMemoryError: requested 4088 bytes for char in /BUILD_AREA/jdk6_24/hotspot/src/share/vm/utilities/stack.inline.hpp. Out of swap space?
#
#  Internal Error (allocation.inline.hpp:39), pid=1148, tid=1082808672
#  Error: char in /BUILD_AREA/jdk6_24/hotspot/src/share/vm/utilities/stack.inline.hpp
#
# JRE version: 6.0_24-b07
# Java VM: Java HotSpot(TM) 64-Bit Server VM (19.1-b02 mixed mode linux-amd64 )
# An error report file with more information is saved as:
# /net/bsrs78.pit.twosigma.com/d-1/local/eaMemory2-yao-bsrs78.pit.twosigma.com-db8rsnyc9-head-20110622-130721-31729-0/hs_err_pid1148.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

But not long before I did that, I checked the machine and it seems like there’s plenty of memory left (numbers shown in MB):

free -m
             total       used       free     shared    buffers     cached
Mem:         96869      60999      35869          0        363       4590
-/+ buffers/cache:      56045      40823
Swap:        10243         40      10203

It doesn’t seem likely to me that GC will take up all the memory.

This is a problem because if I just let the program continue to run, at some point it will max out its allocated heap and then try to do a major GC and die the same way. Minor GC seems fine though.

So what is going on here? Why does it die with the swap space message? Please let me know if there’s anything I can do to provide more information or diagnose this problem further. I will greatly appreciate all help!

Thanks!

Edit1: I’ve uploaded the error log at http://www.mediafire.com/?kw0meup9mw5de9c, and for what it’s worth, it’s using PS Scavenge for minor GC and PS MarkSweep for major GC.

Edit2: Also, this problem has happened multiple times, consistently dying in the middle of a major garbage collection — whether induced by me via visualVM or running out of heap and being triggered by jvm itself.

  • 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-23T16:20:38+00:00Added an answer on May 23, 2026 at 4:20 pm

    Thanks for everyone’s input. It turns out that our company’s system has put a limit (via ulimit) on the amount of virtual memory of the process, which is just ~1G above the amount of heap requested. So the process was denied more memory when it maxed out this limit (apparently major GC will trigger this), even when there was still more virtual memory on the machine (the “out of swap” message is misleading!). Upping the virtual memory limit solved the problem.

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

Sidebar

Related Questions

I've been using C# System.Diagnostics.Process to monitor the output of a command line utility.
I am aware of using jconsole to attach to a java process to get
Which one to use for process monitoring and why?
I would like a low-overhead method of monitoring the I/O of a Windows process.
Monitoring my global exception logs this error seems to be impossible to remove no
I am monitoring a job using Sysview on our glorious IBM mainframe. Can I
I'm monitoring a folder using FileSystemWatcher. If I download a file into there, how
I have Exchange 2010 and I need to run a process using web services
I have a java application that will run on Windows 7 (using Swing, App
On a system monitoring project, I am retrieving process memory usage through WMI. 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.