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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:08:41+00:00 2026-06-10T00:08:41+00:00

I was using Eclipse and I got java.lang.OutOfMemoryError: PermGen space error. In Eclipse FAQ

  • 0

I was using Eclipse and I got java.lang.OutOfMemoryError: PermGen space error. In Eclipse FAQ it says I should add these lines to eclipse.ini:

--launcher.XXMaxPermSize
[xxx]m

where xxx is the memory size I want to use (I tried 256). But after I do this I get Failed to create Java Virtual Machine error on Eclipse startup. What should I do to get it working?


My eclipse.ini file before editing:

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
--launcher.defaultAction
openFile
-vmargs
-Xms40m
-Xmx1024m
  • 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-10T00:08:43+00:00Added an answer on June 10, 2026 at 12:08 am

    You need to adjust your eclipse.ini to include the argument -XX:MaxPermSize + specify a specific JVM for Eclipse to run on by adding the -vm option just before the -vmargs option. Ex:

    -vm
    C:\Java\JDK\1.6\bin\javaw.exe (The exact path to javaw.exe)
    -vmargs
    -Xms40m
    -Xmx1024m
    

    The -vm option and its value (the path) must be on separate lines.

    A complete example:

    -startup
    plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256m
    --launcher.defaultAction
    openFile
    -vm
    C:\Java\JDK\1.6\bin\javaw.exe
    -vmargs
    -XX:MaxPermSize=256m
    -Xms40m
    -Xmx768m
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Eclipse 3.5.2 to do my Android Java programming. I just got
I'm using Eclipse to run java program class, while I run it i got
I am using Eclipse in Linux through a remote connection (xrdp). My internet got
I'm having trouble using the JDBC Connector. I got it to work in Eclipse
When debugging Java code using Eclipse, for collection variables, I saw the modcount member.
I am using Apache FileUpload and I am getting a java.lang.NoClassDefFoundError My first thought
I have a running Java GWT application, that I can compile using Eclipse. Now
I am looking for a solution to build java project using gant inside eclipse
I tried the java.io.Console API using eclipse. My sample code follows. package app; import
I am using eclipse (Java EE edition) to write Java servlets and I would

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.