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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:44:49+00:00 2026-05-31T18:44:49+00:00

I currently work in a Weblogic Java EE project, where from time to time

  • 0

I currently work in a Weblogic Java EE project, where from time to time the application executes a Perl script to do some batch jobs. In the application the script is getting invoked as

Process p = Runtime.getRuntime().exec(cmdString);

Though it is a dangerous way to run, but it was working properly until we had a requirement to execute the script synchronously under a for loop. After a couple of run we are getting
java.io.IOException: Not enough space as probably OS is running out of virtual memory while exec-ing under a for loop. As a result we are not able to run the script at all in the server.

I am desperately looking for a safer and better way to run the Perl script, where we don’t need to fork the parent process, or at-least not to eat-up all swap space!

The spec is as follows:

Appserver - Weblogic 9.52  
JDK - 1.5   
OS - SunOS 5.10 
Sun-Fire-T200
  • 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-31T18:44:50+00:00Added an answer on May 31, 2026 at 6:44 pm

    If you want to keep your code unchanged and have enough disk free space, you can just add a sufficiently large swap area to your OS.

    Assuming you need 10 GB, here is how you do it with UFS:

    mkfile 10g /export/home/10g-swap
    swap -a /export/home/10g-swap
    echo "/export/home/10g-swap - - swap - no -" >> /etc/vfstab
    

    If you use ZFS, that would be:

    zfs create -V 10gb rpool/swap1
    swap -a /dev/zvol/dsk/rpool/swap1
    

    Don’t worry about that large a swap, this won’t have any performance impact as the swap will only be used for virtual memory reservation, not pagination.

    Otherwise, as already suggested in previous replies, one way to avoid the virtual memory issue you experience would be to use a helper program, i.e. a small service that your contact through a network socket (or a higher level protocol like ssh) and that executes the perl script “remotely”.

    Note that the issue has nothing to do with a 32-bit or 64-bit JVM, it is just Solaris doesn’t overcommit memory and this is by design.

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

Sidebar

Related Questions

I currently work on a Java web application that has relies on a permissions
I am currently developing Java/GWT-application which is hosted on a weblogic application server. I
I currently work on a multithreaded application where I receive data using the following
I currently work on a small application with models, mappers and controllers. My question
I currently work into a big project that consists of lots of classes. Can
In the project i currently work on, we use both Subversion and CVS. Developers
I currently work with some code that is repeated - more specifically, code that
I currently work on a web application based on Spring 3.1.0.M1, annotations based, and
I'm currently work on an application(WPF) which consume a wcf service on IIS. When
I'm not entierly sure how rngs currently work, but I know they use time

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.