Operating System - HP-UX
1748060 Members
5637 Online
108758 Solutions
New Discussion юеВ

enabling core dump in HP-UX

 
Ganesh Narayan
Occasional Advisor

enabling core dump in HP-UX

Hi

The java process of my application crashes, but does not core dump.

Could someone please advise on which parameters need to be enabled and what are the flags that i must set for the java application to core dump

Thanks,
Ganesh
5 REPLIES 5
Mark S Meadows
Valued Contributor

Re: enabling core dump in HP-UX

Hi Ganesh,

Java process can generate very large core files.

Check that the default core file size has not been deliberatley set to 0 in the users $HOME/.profile or in the system wide /etc/profile, i.e look for :

# ulimit -c 0

Example default size setting on one of my systems :

/# ulimit -c
4194303

Regards,

Mark
Administrating HP-UX systems for more years than I care to admit, but still enjoying it (most of the time!).
Ganesh Narayan
Occasional Advisor

Re: enabling core dump in HP-UX

Hi Mark,

The ulimit parameter has not been set in the .profile

Hence by default will it not coredump

Do i need to set only the ulimit which will coredump next time onwards ?

Thanks,
Ganesh
Mark S Meadows
Valued Contributor

Re: enabling core dump in HP-UX

Hi Ganesh,

Correct - it should coredump by default.

What does the command ulimit -c show ?

Core file creation is actioned based on the user limit setting of the -c option :

# ulimit -c
# ulimit -Hc (hard limit)
# ulimit -Sc (soft limit)

To set it unlimited then,

# ulimit -HSc unlimited

Regards,

Mark
Administrating HP-UX systems for more years than I care to admit, but still enjoying it (most of the time!).
Dennis Handly
Acclaimed Contributor

Re: enabling core dump in HP-UX

Are you on 11.31? The coreadm(1M) can be used to move the corefiles elsewhere.
Ganesh Narayan
Occasional Advisor

Re: enabling core dump in HP-UX

I am using 11.23