Operating System - HP-UX
1826312 Members
3768 Online
109692 Solutions
New Discussion

Re: Create core - Specific Size

 
joe_91
Super Advisor

Create core - Specific Size

Team:

We have been having some issues with java 1.4.01(creating cores). Now, we want the cores to be created but we wanted to limit the sizes. Here is what i tried ulimit -Sc 6000, and kill -QUIT but it does not work. Please advise whether this will restrict OS cores to this size also?

Thanks

Joe

3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor

Re: Create core - Specific Size

If by "OS cores" you mean crash dumps then ulimit does not apply BUT ulimit does apply to processes (like Java). I would try setting both the hard and soft ulimit core values with ulimit -c 6000 and then do a ulimit -Sa and ulimit -Ha to see if the value is set. What might be happening is that the process itself is increasing the ulimit itself or is a daemon that is already started and setting the ulimit in your environemnt has no effect. Without knowing more about your code there's no way to tell.
If it ain't broke, I can fix that.
joe_91
Super Advisor

Re: Create core - Specific Size

Clay:

Thanks. I set ulimit -c 6000 and then when i do ulimit -Sa and ulimit -Ha (both show 6000 as coredump (Blocks). But when i do kill -QUIT os a sleep process i get the core which is BIG one and NOT 6000.

Thanks

Joe.
joe_91
Super Advisor

Re: Create core - Specific Size

Team:

Even if i try ulimit -Sc 0 it still creates a core of full size. any thoughts?

Thanks

Joe.