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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:53:47+00:00 2026-05-28T03:53:47+00:00

I am tryiung to start a java process that requires a lot of memory.

  • 0

I am tryiung to start a java process that requires a lot of memory. For some reason, it does not work if I specify more than 19G of RAM for the process. The free and top show that I have 23G of free memory, so I wonder why this error occurs.

           total       used       free     shared    buffers     cached
Mem:         24158       1047      23111          0         16        356
-/+ buffers/cache:        673      23485
Swap:         2204          0       2204

Starting the process with these jvm options:

-XX:+UseConcMarkSweepGC -server -d64 -Xms4g -Xmx22g

version:

java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)

However, if I specify 19G as Xmx it works.

  • 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-28T03:53:47+00:00Added an answer on May 28, 2026 at 3:53 am

    The Java VM allocates memory for the heap as well as for PermGen space. Can it be that your configuration with heap space + PermGen space exceeds your free memory?

    Which value is -XX:MaxPermSize set to?

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

Sidebar

Related Questions

I'm trying to start an external process via Java using the ProcessBuilder class, and
I am writing a script that calls another java program, to perform some tasks.
I'm trying to start a service as a user and things work fine, until
I'm trying to start a service that has a argument that specifies a port
I am actually trying to start a process for winzip and zip a folder.
I've been trying to use Java's ProcessBuilder to launch an application in Linux that
I'm trying to dynamically run a .jar from a C# assembly (using Process.Start(info) ).
My aim is to start a service that listens for changes to the device's
I've got a java code that is writing a Linux bash script out, then
I used this line to execute a python script from a java application: Process

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.