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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:31:58+00:00 2026-05-28T05:31:58+00:00

set JAVA_OPTS=-Xms256m -Xmx512m -Djava.awt.headless=true -XX:MaxPermSize=256m -server This argument works in run.bat of jboss but

  • 0
set JAVA_OPTS=-Xms256m -Xmx512m -Djava.awt.headless=true -XX:MaxPermSize=256m -server

This argument works in run.bat of jboss but as i want to increase stack size i have added
-Xss512m
but it’s not working.

set JAVA_OPTS=-Xms256m -Xss512m -Xmx512m -Djava.awt.headless=true -XX:MaxPermSize=256m -server

What is wrong in it ?

  • 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-28T05:31:59+00:00Added an answer on May 28, 2026 at 5:31 am

    The -Xss512m option increases the size of every thread stack to 512 Mbytes. That’s crazy. I expect that this is causing JBoss to run out of memory.

    Why are you increasing the stack size in the first place? The default stack size should be fine for most purposes. If it isn’t big enough then there’s a good chance that either:

    • you have a bug in your program that is causing infinite recursion (and increasing the stack size won’t help) or …

    • you are using an algorithm that has a pathological case (and increasing the stack size is a bandaid).


    Based on your comments, I’d guess that you are using a regex to parse an entire input document containing multiple records. The regex engine uses recursion to deal with repeating elements / groups.

    Assuming that this is the problem, then the fix is to rewrite your parsing code.

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

Sidebar

Related Questions

I'm trying to set java.awt.headless=true during the application startup but it appears like I'm
In my tomcat server.xml, I set JAVA_OPTS -Xmx3072m; top command, why show DATA column
in JBoss' run.bat , add: set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote - Dcom.sun.management.jmxremote.port=9987 - Dcom.sun.management.jmxremote.ssl=false - Dcom.sun.management.jmxremote.authenticate=false
I need to set ANT_OPTS=-Xms1024m -Xmx6144m -XX:PermSize=1024m -XX:MaxPermSize=1024m JAVA_OPTS=-Xms1024m -Xmx6144m -XX:PermSize=1024m -XX:MaxPermSize=1024m I have
I need to set -Dfile.encoding=UTF8 globally on Windows machine. I tried to set JAVA_OPTS
I added a jmxremote configuraiton in the catalina.bat: set JAVA_OPTS=-Dcom.sun.management.jmxremote.port=9004 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false so that
I have been trying to run with JRebel this configuration: Here is my output:
In a shell script, I have set the JAVA_OPTS environment variable (to enable remote
I know there's some JAVA_OPTS to set to remotely debug a Java program. What
I'm running tomcat6, and I'm unclear if I need to set java_opts or CATALINA_OPTS?

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.