Help with setting coredumpsize using ulimit


 
Thread Tools Search this Thread
Operating Systems Solaris Help with setting coredumpsize using ulimit
# 1  
Old 04-18-2016
Tools Help with setting coredumpsize using ulimit

A coredump is being created by one of our applications on Solaris server and occupying entire space on the mount, thereby bringing down the application.
While we try to identify the root cause, i tried to limit to limit the size of the core dump.
Executed below command in shell and also updated in .profile file:
ulimit -c 500

When i do a ulimit -a, i see the coredumpsize as 500.
But the application again created a core of size 600 MB. So, the setting is not working.
When i do a plimit <pid>, the coredumpsize is shown as 'unlimited'.

Can someone please help me on restricting the size of coredump.
# 2  
Old 04-18-2016
How is the application run? Daemon? script? what. Does the process that starts the app have privilege? Does the app process itself have privileges?

Answer those and you can fix the problem.

Meanwhile, also consider getting the application 'fixed'. By definition, a production app does not coredump. Because it has been correctly and fully tested, for one good reason. We had a process that dumped core for several years because the manager would not let anyone address the problem. Literally.
This User Gave Thanks to jim mcnamara For This Post:
# 3  
Old 04-19-2016
Quote:
Originally Posted by jim mcnamara
How is the application run? Daemon? script? what. Does the process that starts the app have privilege? Does the app process itself have privileges?

Answer those and you can fix the problem.

Meanwhile, also consider getting the application 'fixed'. By definition, a production app does not coredump. Because it has been correctly and fully tested, for one good reason. We had a process that dumped core for several years because the manager would not let anyone address the problem. Literally.
Thanks for the reply.
The application is run as a script. I'm not well versed with Solaris OS, so i'm not able to answer your other two questions. Can you please guide me.
Yes we are considering fixing the application, meanwhile thinking of this option to limit coredump size as a workaround
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Ulimit setting

Hi, Our application team is asking me to set ulimit parameter in my AIX 6.1 TL8 box. Some of them i set already. address space limit (kbytes) (-M) unlimited locks (-L) unlimited locked address space (kbytes) (-l) 64 nice (-e) ... (3 Replies)
Discussion started by: sunnybee
3 Replies

2. Solaris

Is there a difference between setting a user as nologin and setting it as a role?

Trying to figure out the best method of security for oracle user accounts. In Solaris 10 they are set as regular users but have nologin set forcing the dev's to login as themselves and then su to the oracle users. In Solaris11 we have the option of making it a role because RBAC is enabled but... (1 Reply)
Discussion started by: os2mac
1 Replies

3. Red Hat

setting ulimit for a user

The root user runs the following ulimit -a | grep open and gets a result of open files (-n) 8162 A user runs the same command and gets a result of open files (-n) 2500 How can you set the ulimit of the user to... (2 Replies)
Discussion started by: jsanders
2 Replies

4. UNIX for Advanced & Expert Users

Help with Ulimit Setting

All, Our SA is considering setting the max open files from 2048 to 30K. This sounds like a drastic change. Does anybody have an idea of the negative impacts of increasing the open files too high? Would like to know if this change could negatively impact our system. What test should we run to... (2 Replies)
Discussion started by: wcrober
2 Replies

5. Red Hat

Process does not dump any core files when crashed even if coredumpsize is unlimited

Hello Im using redhat and try to debug my application , its crashes and in strace I also see it has problems , but I can't see any core dump I configured all the limit ( im using .cshrc ) and it looks like this : cputime unlimited filesize unlimited datasize unlimited... (8 Replies)
Discussion started by: umen
8 Replies

6. UNIX for Advanced & Expert Users

Setting Ulimit problem

I changed the standard Ulimit sometime back. But when I change it back, the setting does not get updated. How do I make the change permanent Waitstejo (7 Replies)
Discussion started by: Waitstejo
7 Replies

7. UNIX for Advanced & Expert Users

setting ulimit -n with a value more than 1024000

I would like to set the maximum number or open files per process to be greater than 1024000 (for specific application scalability purpose). I am using RHEL 5.3/Ext4. %sysctl fs.file-max fs.file-max = 164766821 I also have added the folloing to /etc/security/limits.conf * ... (7 Replies)
Discussion started by: Hsianglung Wu
7 Replies

8. Shell Programming and Scripting

Setting Ulimit

How do i set ulimit for user (4 Replies)
Discussion started by: Krrishv
4 Replies

9. Solaris

ulimit setting problem on Solaris

How do you make the ulimit values permanent for a user? by default, the root login has the following ulimits: # ulimit -a time(seconds) unlimited file(blocks) unlimited data(kbytes) unlimited stack(kbytes) 8192 coredump(blocks) unlimited nofiles(descriptors) 1024 memory(kbytes)... (2 Replies)
Discussion started by: kiem
2 Replies

10. UNIX for Dummies Questions & Answers

ulimit -d

All I am trying to do ulimit -d unlimited and I get "sh: ulimit: The specified value exceeds the user's allowable limit." Can someone please help me understand, how to change this! Thanks (1 Reply)
Discussion started by: adadevil
1 Replies
Login or Register to Ask a Question