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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:20:02+00:00 2026-06-05T16:20:02+00:00

I have read various posts in stackoverflow and I am trying to figure out

  • 0

I have read various posts in stackoverflow and I am trying to figure out how to increase my heap size for my JVM.
I know that the command -vmargs -Xms256m -Xmx4096m will increase the heap size.
But it is not working, or I don’t know how to use the command. I read that I should go to the JVM folder and type this command but I cant locate Java in my Virtual machine.

I also read that I can do it by changing the values in the eclipse.ini file but I am not able to find anything related to heapsize in my file. I can do a grep java and find out that my heap size is 324m.

Can someone guide me for where and how I should increase the heap size?

  • 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-06-05T16:20:04+00:00Added an answer on June 5, 2026 at 4:20 pm

    It depends on what application that you are trying to launch.

    If you are running your java code from commandline using java executable, then you can simply pass these parameters as argument to java executable.

    java -Xms256m -Xmx2096m <main class>
    

    If you want increase Eclipse’s JVM memory, then you can update eclipse.ini by appending following lines to the end of file.

    -Xms256m
    -Xmx4906m
    

    For any software which uses JVM (like tomcat, weblogic etc), you need to follow their documentation to set JVM arguments. Usually, they will provide startup script where you will have option to set the JVM arguments.

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

Sidebar

Related Questions

I am creating a tag cloud and have read the various posts that describe
I've read through the various posts on SO about this, but have still not
I have read in various places that having variables with global scope, i.e. a
I have an MVC 3 app that I'm building, and need to figure out
I've read in various places that one important requirement in DDD is to have
I have read as many of the posts on Stackoverflow as I can find
I've read in multiple posts on SO that if users have Javascript disabled, ideally
Hallo, Recently I have read a couple of posts on varous sites and blogs
I have 2 questions Q1: I have read about various coding indent styles like
I have read a file into a String. The file contains various names, one

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.