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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:45:24+00:00 2026-05-13T10:45:24+00:00

I was reading in netbeans 6, you don’t have to set the maximum heap

  • 0

I was reading in netbeans 6, you don’t have to set the maximum heap size, it will just look at your computer for that information.

My system has 8 gigs of ram, but my application only has 64mb to play with and it is running out of memory.

I did a:

System.out.println(Runtime.getRuntime().maxMemory());

And it is 66 650 112 bytes (63.5625 megabytes).

my netbeans.config:

-J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m

I tried to change these numbers, but then netbeans failed to load (JVM error).

How can I increase the maximum size to 1 GB?

  • 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-13T10:45:25+00:00Added an answer on May 13, 2026 at 10:45 am

    This command line give to your Java program a 64Mb initial and 256Mb maximum heap size.

    java -Xms64m -Xmx256m jdbc_prog
    

    Good luck!

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

Sidebar

Related Questions

Let me start by saying that I have been reading the drag'n drop tutorial
I'm new to Eclipse (and don't know NetBeans too). I'm reading eclipse tutorial. But
Quick background, I am using Netbeans to develop this (I don't have much experience
I am reading the Netbeans Platform Quick Start tutorial ( http://platform.netbeans.org/tutorials/nbm-quick-start.html ), and I
Warning : I have just picked up Maven, so things mentioned might be wrong
Java, ANTLR and Netbeans newbie here. I have installed a jdk and netbeans. I
All, I am trying to ensure that a file I have open with BufferedReader
Reading over some example Objective C code just now. @property (nonatomic, strong) IBOutlet UILabel
Serious question: I just committed to github and got shocked: Netbeans has transferred my
I rarely used the netbeans debugger but I have this bug in my program

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.