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

  • Home
  • SEARCH
  • 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 7790945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:44:28+00:00 2026-06-01T21:44:28+00:00

I want to increase my Heap size. How can I use JAVA_OPTS for doing

  • 0

I want to increase my Heap size. How can I use JAVA_OPTS for doing so.I am getting the following error may be this is because of low heap size

UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOfRange(Arrays.java:3209)
    at java.lang.String.<init>(String.java:215)
    at java.lang.StringBuilder.toString(StringBuilder.java:430)
    at com.android.dx.rop.type.Prototype.withFirstParameter(Prototype.java:370)
    at com.android.dx.rop.code.Rops.ropFor(Rops.java:1210)
    at com.android.dx.cf.code.RopperMachine.run(RopperMachine.java:478)
    at com.android.dx.cf.code.Simulator$SimVisitor.visitConstant(Simulator.java:692)
    at com.android.dx.cf.code.BytecodeArray.parseInstruction(BytecodeArray.java:763)
    at com.android.dx.cf.code.Simulator.simulate(Simulator.java:95)
    at com.android.dx.cf.code.Ropper.processBlock(Ropper.java:684)
    at com.android.dx.cf.code.Ropper.doit(Ropper.java:639)
    at com.android.dx.cf.code.Ropper.convert(Ropper.java:252)
    at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:256)
  • 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-01T21:44:30+00:00Added an answer on June 1, 2026 at 9:44 pm

    You should be able to use the information found in this post.

    -Xmszzzm
    

    where zzz is your minimum size.

    -Xmxzzzm
    

    where zzz is your maximum size.

    JAVA_OPTS="-Xms128m -Xmx512m"
    

    You can find more info on VM args here.

    How to set it globally in your environment depends on your operating system. Which OS are you using?

    EDIT: I see the “ubuntu” tag now.

    You should just be able to put the JAVA_OPTs line in etc/environment. Once you modify etc/environment, you’ll have to log out and back in for the updated environment variables to take effect.

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

Sidebar

Related Questions

I want to increase the heap size of my Glassfish. For that, I know
I want to increase the size of my rectangle by 10 pixels. The following
For each click I want to increase the font size. $('#fontplus').each(function('click') { var fs
I want to know how to increase the value in a FOR-loop statement. This
I want to use ADO.NET Prepare command will increase performance if query is repeatevely
I have written this code where I want to increase / decrease number of
I am modifying some HTML pages and want to increase the font size dynamically
I want to increase the size of popup as well as the size of
I want to increase the size of the number in OL without increasing the
I have a field in mysql table that I want increase this field value

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.