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

The Archive Base Latest Questions

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

My algorithm needs to use more stack space than allowed by default. Do I

  • 0

My algorithm needs to use more stack space than allowed by default. Do I have to increase the stack space on every machine, or is there a way to include it in the class so it will run smoothly on each machine.

  • 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-31T06:42:00+00:00Added an answer on May 31, 2026 at 6:42 am

    Your latter approach won’t work – the stack space is a startup parameter, which is used to allocate space to the Java process itself.

    By the time everything has been set up to load and execute the class, by definition the process already exists and its stack size has already been determined. You can’t modify Xss at runtime.

    Usually what you’d do though is distribute a startup script which launches your application with appropriate memory parameters. How is your class being invoked? If it’s a library then it’s the application’s job to ensure enough memory is allocated, arguably you can just list it as a requirement in your documentation.

    In an extreme case you could use Process to spawn a completely new Java process with the startup parameters you desire – however this would be very error prone, would require an assumption that java was on the path (or that the same directory structure exists everywhere), that you have permissions to create new processes, that sufficient memory/filehandles exist for this new process, etc. It isn’t something I’d want to do, but if you exhaust all other options it might tide you over in a pinch.

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

Sidebar

Related Questions

What would be a simplest algorithm one or more people could use to decide
I am currently working on a project where I a data matching algorithm needs
I'm writing a low level image processing algorithm which needs to do alot of
I am toying with certain caching algorithm, which is challenging somewhat. Basically, it needs
Recently I wrote the algorithm to quantize an RGB image. Every pixel is represented
I'm presently working with data in text files. I need to use algorithm called
I have an existing algorithm and I need to optimize it sligtly if it
I have an unsigned int storing a random number. I need to use this
I've developed an equation parser using a simple stack algorithm that will handle binary
It's more a theoretical question than a practical one. I know that GC are

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.