11-17-2014
Check for environment variable differences when the app is run remotely. You could be loading the wrong shared object because of a different environment, for example. You might also be running into resource limits on the remote invocation, such as max memory usage.
Can you get a stack trace from a core file? If so, what is the app trying to do when it SEGVs? If you can get a stack trace, can you get a memory map? Where is the code being executed from? What shared library or executable?
Intermittent SEGVs can be tremendously hard to track down. Heap corruption from buffer overflows - the most common cause of intermittent SEGVs - tends to appear almost random at times because of the way heap memory tends to work. (Because of hardware alignment requirements, heap memory from "malloc()/calloc()/etc" and/or "new" tends to be parceled out in 8-byte blocks. So if you malloc() a 25-byte buffer, on most of today's hardware you really get 32 bytes...)
Are you responsible for developing this application? If so, have you ever tried something like
Purify? Go look at the cost of that tool, then calculate how much time you've already spent trying to run down this ONE problem...
10 More Discussions You Might Find Interesting
1. Programming
Hi Everybody,
I have gone through man of sigwait and new to UNIX signals. Could anyone explain me about the following lines mentioned in sigwait man help ?
"The selection of a signal in set is independent of the signal
mask of the calling thread or LWP. This means a thread or
LWP can ... (1 Reply)
Discussion started by: md7ahuja
1 Replies
2. Programming
Hi All,
When I ran a multithreaded program in c++, it was core dumped
when its core was analysed
it indicated that the program was terminated with signal 9.
Signal 9 cannot be caught or interrupted.
When i analyzed the core further, it showed SING error
what could be the reason for... (6 Replies)
Discussion started by: matrixmadhan
6 Replies
3. AIX
I have some questions :
1) We can system backup manual by remotely? (Ex: we peform backup a AIX system in Japan from US)How we can do?
2) We can build a script to system backup automatically? How we can do?
3) We can use which third party to do that? Which tool?
Thanks (1 Reply)
Discussion started by: guest
1 Replies
4. HP-UX
Hi all,
I am getting coredump in one of our programs. The last few lines of the tucs output are as below :
read(8, "\adb\0\006\0\0\0\0\0060 0 9 2 6 ".., 2064) ...... = 2011
read(8, "\adb\0\006\0\0\0\0\07 4 1 4 5 03".., 2064) ...... = 2011
read(8, "\adb\0\006\0\0\0\0\00 2 6 030 0 ".., 2064)... (0 Replies)
Discussion started by: santosh.mane
0 Replies
5. Shell Programming and Scripting
I honestly tried searching for this in this forum and in google. Maybe I found the answer but didn't even realized it.
I would like to run shell script thats on my machine that collects the hostname and IP address from the remote system and sends the output to my machine.
I'm not sure if need... (2 Replies)
Discussion started by: elbombillo
2 Replies
6. UNIX for Advanced & Expert Users
Hi,
When i run the code in solaris unix machine, the file from remote server is getting downloaded. but when i use the same code in IBM AIX remote machine, it is not running. It is saying "Erro during scp transfer." Below is the code.
Please give some resolution.
SCPClient client = new... (1 Reply)
Discussion started by: gravi2020
1 Replies
7. Solaris
how to login with ssh to remote system with out applying the remote root/user password
with rlogin we can ujse .rhosts file
but with ssh howits possible
plz guide (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies
8. Shell Programming and Scripting
Hi Friends,
I am new to this , I am working on AIX system and my scenario is to retrive the files from remote system and remove the files from the remote system after retreving files. I can able to retrieve the files but Can't remove files in remote system. Please check my code and help me out... (3 Replies)
Discussion started by: vinayparakala
3 Replies
9. Shell Programming and Scripting
Hi,
I have an shell script program in a remote linux machine which will do some specific monitoring functionality. Also, have some C executables in that machine.
From a windows machine, I want to run the shell script program (If possible using java).
I tried with SSH for this. but, in... (1 Reply)
Discussion started by: ram.sj
1 Replies
10. Shell Programming and Scripting
Hello Every one!!
I am trying to write a shell script which will connect to a remote server and execute scripts which are at a certain path in the remote server.
Before this I am using a sudo command to change the user.
The place where I am stuck is, I am able to connect to the... (6 Replies)
Discussion started by: masubram
6 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)