04-09-2015
Core File Generation
Hi
I am using Linux and I am using Java as well as C++ services running on it.
The ulimit -c is set to around 400Mb.
Whenever any of the service fails they produce a core file.(Actual size of core could be greater than 400Mb).
Whenever my Java service fails I get a core file of size 400Mb (Actual size of this core can be more than 8GB.) .But if my C++ service fails I don't get a core file(even though I know there is a core file generated),as it generates a file which tell that a core file is generated.(Java service also generates a file telling a core file is generated).
Could you please advise, is it only because of ulimit -c?
Thanks
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I am getting core file in local machine after trasfer files to other machine by using scp (secure copy) of SSH in UNIX.
Could any one please tell me how to restrict core file generatation by using scp command. (4 Replies)
Discussion started by: nrsekhar
4 Replies
2. Solaris
Hi, im getting a core dump file in my sun OS version 5.9 while using a complex c++ program. The same program is working without any core error in another system with same sun OS and same version. The program has used structs, LL's and lots of call by references. What may be the reason. will it be a... (3 Replies)
Discussion started by: suresh_kb211
3 Replies
3. Programming
Hi, I am running a c++ program in unix sun OS 5.9. There are two functions in a file which are being used by a third function in the same file. the two functions being used are of the same type. one function is returning a success and the control is redeemed by the calling function. for teh second... (2 Replies)
Discussion started by: suresh_kb211
2 Replies
4. Programming
Hi, I am running a c++ program in unix sun OS 5.9. There are two functions in a file which are being used by a third function in the same file. the two functions being used are of the same type. one function is returning a success and the control is redeemed by the calling function. for teh second... (5 Replies)
Discussion started by: suresh_kb211
5 Replies
5. Programming
Posting again, as previous query had a typo.
=======================================================
Hi, I am running a c++ program in unix AIX machine. There are two functions in a file which are being used by a third function in the same file. the two functions being used are of the same type.... (1 Reply)
Discussion started by: suresh_kb211
1 Replies
6. AIX
Hi, im getting a core dump file in a AIX machine while using a complex c++ program. The same program is working without any core error in another system with sun OS 5.9. The program has used structs, LL's and lots of call by references. What may be the reason. will it be a problem with the OS ? (3 Replies)
Discussion started by: suresh_kb211
3 Replies
7. Shell Programming and Scripting
hi all
i need to generate a report file that contains the following details of files present in a directory.
1. File name
2.Complete path for each files and directory
3.File size
4.Days older
example i have a directory testing that contains sub-directories and some files.
i need to make a... (5 Replies)
Discussion started by: yashwantkumar
5 Replies
8. Shell Programming and Scripting
Hi,
I wanted to create a control file with data in it.
Also wanted to append more points like
1)Row count, then print the first field
2)first line of the file
3)last line of the file
I started with this:-
ls -ltr *.*| awk ' { print $9 "|" $7 $6 $8 "|" $5 } '
sed -n '1p';
sed -n '$p';
... (2 Replies)
Discussion started by: alokbaba
2 Replies
9. Shell Programming and Scripting
Dear all
Hope you are doing good.
I've requirement where in I need to generate a file containing set of SQLs as per the inputs.
My script flow is like reading few parameters using read command to read input to script and process the inputs. However at one of the input, my script has to... (3 Replies)
Discussion started by: tenderfoot
3 Replies
10. Shell Programming and Scripting
Hi Team,
Is it possible to generate the xls OR xlsx file factility in Unix and xls file should be more than one sheet. (2 Replies)
Discussion started by: bmk123
2 Replies
jmap(1) General Commands Manual jmap(1)
NAME
jmap - memory map
SYNOPSIS
jmap [ option ] pid
jmap [ option ] executable core
jmap [ option ] [ server-id@ ] remote-hostname-or-IP
DESCRIPTION
jmap prints shared object memory maps or heap memory details of a given process or core file or remote debug server.
NOTE - This utility is unsupported and may or may not be available in future versions of the J2SE SDK. jmap is not currently available on
Windows platforms or on the Linux Itanium platform.
PARAMETERS
option Options are mutually exclusive. Option, if used, shouldfollow immediately after the command name.
pid process id for which the memory map is to be printed. The process must be a Java process. To get a list of Java processes
running on a machine, jps may be used.
executable Java executable from which the core dump was produced.
core core file for which the memory map is to be printed.
remote-hostname-or-IP
remote debug server's (see jsadebugd) hostname or IP address.
server-id optional unique id, if multiple debug servers are running on the same remote host.
OPTIONS
<no option> When no option is used jmap prints shared object mappings. For each shared object loaded in the target VM, start address,
the size of the mapping, and the full path of the shared object file are printed. This is similar to the Solaris pmap util-
ity.
-heap Prints a heap summary. GC algorithm used, heap configuration and generation wise heap usage are printed.
-histo Prints a histogram of the heap. For each Java class, number of objects, memory size in bytes, and fully qualified class
names are printed. VM internal class names are printed with '*' prefix.
-permstat Prints class loader wise statistics of permanent generation of Java heap. For each class loader, its name, liveness,
address, parent class loader, and the number and size of classes it has loaded are printed.
-h Prints a help message.
-help Prints a help message.
SEE ALSO
pmap(1) jps(1) jsadebugd(1)
13 June 2004 jmap(1)