#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2011
    Posts
    2
    Rep Power
    0

    Unhappy How to prevent or stop generation of core file while running code on unix box.


    Hi,

    Please help while i am running my jar file on aix box a core file is being generated.Kindly,provide me the solution so that no core file is generated.which environment variable i need to set it?
  2. #2
  3. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,837
    Rep Power
    480

    ulimit


    the shell command

    ulimit -c 0

    might help.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2011
    Posts
    2
    Rep Power
    0

    Unhappy


    Originally Posted by b49P23TIvg
    the shell command

    ulimit -c 0

    might help.

    Hi,
    where did i execute this command?????.My code is running fine.output is same as i expected but the core file is formed .
  6. #4
  7. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,837
    Rep Power
    480

    shell


    I don't know which program produces core files. The shell? Somewhere in the OS? Consider posing your question to the java group. If java produces core files it might ignore a coresize limit. I keep the coresize limit in my shell startup file. Anyway, I proposed this:

    shell_prompt$ ulimit -c 0
    shell_prompt$ java worms_in_a.jar


    The ulimit shell command might have a different name in another shell. I use the born again shell.
    Last edited by b49P23TIvg; September 15th, 2011 at 10:37 AM. Reason: additional information supplied

IMN logo majestic logo threadwatch logo seochat tools logo