• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

help! java application quits abnormally

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

I am having tcp client program in java , communicates with daemon.

Recently i faced problem with OutOfMemoryError, gone with -Xmx option for java.

Now, suddenly program quits without any error or exception or notifications.


I am using JDK 1.3.1 in redHat 7.2 ( kernel 2.4.7-10 ).

>java -version

java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)

Please! help me asap.

regards,
stp.
 
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
STP,
Can you run in a debugger? If not, use jakarta log4j to put logging into your app to see where it bombs. Likely it's a problem with your app...
 
Thanga prakash Somasundaram
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Unexpected Signal : 11 occurred at PC=0x401fb500
Function name=copy_to_survivor_space__7oopDescPP7oopDesc
Library=/usr/local/javadirs/jdk1.3.1/jre/lib/i386/client/libjvm.so


Dynamic libraries:
08048000-0804c000 r-xp 00000000 03:05 35647 /usr/local/javadirs/jdk1.3.1/bin/i386/native_threads/java
0804c000-0804d000 rw-p 00003000 03:05 35647 /usr/local/javadirs/jdk1.3.1/bin/i386/native_threads/java
40000000-40016000 r-xp 00000000 03:01 95830 /lib/ld-2.2.4.so
40016000-40017000 rw-p 00015000 03:01 95830 /lib/ld-2.2.4.so
40017000-40028000 r-xp 00000000 03:05 483866 /usr/local/javadirs/jdk1.3.1/jre/lib/i386/libverify.so
40028000-4002a000 rw-p 00010000 03:05 483866 /usr/local/javadirs/jdk1.3.1/jre/lib/i386/libverify.so
4002a000-4002b000 r--p 00000000 03:05 288016 /usr/lib/locale/en_US/LC_IDENTIFICATION
4002b000-4002c000 r--p 00000000 03:05 544110 /usr/lib/locale/en_US/LC_MEASUREMENT
4002c000-4002d000 r--p 00000000 03:05 48242 /usr/lib/locale/en_US/LC_TELEPHONE
4002d000-4002e000 r--p 00000000 03:05 48244 /usr/lib/locale/en_US/LC_ADDRESS
4002e000-4002f000 r--p 00000000 03:05 48243 /usr/lib/locale/en_US/LC_NAME
4002f000-40030000 r--p 00000000 03:05 112041 /usr/lib/locale/en_US/LC_PAPER
40030000-40031000 r--p 00000000 03:05 384072 /usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
40031000-40032000 r--p 00000000 03:05 544109 /usr/lib/locale/en_US/LC_MONETARY
40033000-40040000 r-xp 00000000 03:01 95828 /lib/i686/libpthread-0.9.so
40040000-40048000 rw-p 0000c000 03:01 95828 /lib/i686/libpthread-0.9.so
40048000-40051000 r-xp 00000000 03:05 483864 /usr/local/javadirs/jdk1.3.1/jre/lib/i386/native_threads/libhpi.so
40051000-40052000 rw-p 00008000 03:05 483864 /usr/local/javadirs/jdk1.3.1/jre/lib/i386/native_threads/libhpi.so
40052000-402b9000 r-xp 00000000 03:05 515859 /usr/local/javadirs/jdk1.3.1/jre/lib/i386/client/libjvm.so
402b9000-4041f000 rw-p 00266000 03:05 515859 /usr/local/javadirs/jdk1.3.1/jre/lib/i386/client/libjvm.so
40436000-40439000 r-xp 00000000 03:01 95843 /lib/libdl-2.2.4.so
40439000-4043a000 rw-p 00002000 03:01 95843 /lib/libdl-2.2.4.so
4043a000-4056c000 r-xp 00000000 03:01 95824 /lib/i686/libc-2.2.4.so
4056c000-40571000 rw-p 00131000 03:01 95824 /lib/i686/libc-2.2.4.so
40575000-40588000 r-xp 00000000 03:01 95848 /lib/libnsl-2.2.4.so
40588000-40589000 rw-p 00012000 03:01 95848 /lib/libnsl-2.2.4.so
4058c000-405ae000 r-xp 00000000 03:01 95826 /lib/i686/libm-2.2.4.so
405ae000-405af000 rw-p 00021000 03:01 95826 /lib/i686/libm-2.2.4.so
405af000-405e3000 r-xp 00000000 03:05 65428 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
405e3000-405ef000 rw-p 00033000 03:05 65428 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
405f1000-40612000 r-xp 00000000 03:05 483867 /usr/local/javadirs/jdk1.3.1/jre/lib/i386/libjava.so
40612000-40614000 rw-p 00020000 03:05 483867 /usr/local/javadirs/jdk1.3.1/jre/lib/i386/libjava.so
40615000-40629000 r-xp 00000000 03:05 483868 /usr/local/javadirs/jdk1.3.1/jre/lib/i386/libzip.so
40629000-4062c000 rw-p 00013000 03:05 483868 /usr/local/javadirs/jdk1.3.1/jre/lib/i386/libzip.so
4062c000-41345000 r--s 00000000 03:05 483897 /usr/local/javadirs/jdk1.3.1/jre/lib/rt.jar
41372000-41617000 r--s 00000000 03:05 483898 /usr/local/javadirs/jdk1.3.1/jre/lib/i18n.jar
41617000-4162d000 r--s 00000000 03:05 483885 /usr/local/javadirs/jdk1.3.1/jre/lib/sunrsasign.jar
436d5000-436db000 r--p 00000000 03:05 464164 /usr/lib/locale/en_US/LC_COLLATE
436db000-436dc000 r--p 00000000 03:05 288017 /usr/lib/locale/en_US/LC_TIME
41617000-4162d000 r--s 00000000 03436dc000-436dd000 r--p 00000000 03:05 592099 /usr/lib/locale/en_US/LC_NUMERIC
436dd000-436df000 r-xp 00000000 03:05 560187 /usr/lib/gconv/ISO8859-1.so
436df000-436e0000 rw-p 00001000 03:05 560187 /usr/lib/gconv/ISO8859-1.so
55dff000-55e2a000 r--p 00000000 03:05 592103 /usr/lib/locale/en_US/LC_CTYPE
55e2a000-55e30000 r--s 00000000 03:05 275889 /usr/local/javadirs/jdk1.3.1/jre/lib/ext/jcl.jar
55e30000-55e38000 r--s 00000000 03:05 275890 /usr/local/javadirs/jdk1.3.1/jre/lib/ext/comm.jar
55e38000-55e3e000 r-xp 00000000 03:05 96424 /usr/X11R6/lib/libXp.so.6.2
55e3e000-55e40000 rw-p 00005000 03:05 96424 /usr/X11R6/lib/libXp.so.6.2
55e40000-55e45000 r--s 00000000 03:05 560239 /usr/lib/gconv/gconv-modules.cache
55e45000-55e4f000 r-xp 00000000 03:01 95864 /lib/libnss_files-2.2.4.so
55e4f000-55e50000 rw-p 00009000 03:01 95864 /lib/libnss_files-2.2.4.so
566bc000-56a90000 r--s 00000000 03:03 654084 /home/corview/ricEMS/corView/corView.jar
56a90000-56e5d000 r-xp 00000000 03:05 483875 /usr/local/javadirs/jdk1.3.1/jre/lib/i386/libawt.so
56e5d000-56e6d000 rw-p 003cc000 03:05 483875 /usr/local/javadirs/jdk1.3.1/jre/lib/i386/libawt.so
56e82000-56eb3000 r-xp 00000000 03:05 483874 /usr/local/javadirs/jdk1.3.1/jre/lib/i386/libmlib_image.so
56eb3000-56eb5000 rw-p 00030000 03:05 483874 /usr/local/javadirs/jdk1.3.1/jre/lib/i386/libmlib_image.so
56eb5000-56ec1000 r--s 00000000 03:05 451887 /usr/local/javadirs/mail/activation.jar
56ec4000-56ecd000 r-xp 00000000 03:05 483871 /usr/local/javadirs/jdk1.3.1/jre/lib/i386/libnet.so
56ecd000-56ece000 rw-p 00008000 03:05 483871 /usr/local/javadirs/jdk1.3.1/jre/lib/i386/libnet.so
56ed0000-56f18000 r-xp 00000000 03:05 96430 /usr/X11R6/lib/libXt.so.6.0
56f18000-56f1c000 rw-p 00047000 03:05 96430 /usr/X11R6/lib/libXt.so.6.0
56f1c000-56f28000 r-xp 00000000 03:05 96412 /usr/X11R6/lib/libXext.so.6.4
56f28000-56f2a000 rw-p 0000b000 03:05 96412 /usr/X11R6/lib/libXext.so.6.4
56f2a000-56f2e000 r-xp 00000000 03:05 96432 /usr/X11R6/lib/libXtst.so.6.1
56f2e000-56f30000 rw-p 00003000 03:05 96432 /usr/X11R6/lib/libXtst.so.6.1
56f30000-57009000 r-xp 00000000 03:05 96404 /usr/X11R6/lib/libX11.so.6.2
57009000-5700e000 rw-p 000d8000 03:05 96404 /usr/X11R6/lib/libX11.so.6.2
5700e000-57015000 r-xp 00000000 03:05 96402 /usr/X11R6/lib/libSM.so.6.0
57015000-57017000 rw-p 00006000 03:05 96402 /usr/X11R6/lib/libSM.so.6.0
57017000-5702b000 r-xp 00000000 03:05 96398 /usr/X11R6/lib/libICE.so.6.3
5702b000-5702c000 rw-p 00013000 03:05 96398 /usr/X11R6/lib/libICE.so.6.3
5702e000-57068000 r--s 00000000 03:05 451888 /usr/local/javadirs/mail/mail.jar
57068000-570a8000 r--s 00000000 03:05 323887 /usr/local/javadirs/telnet/jta25.jar
570a8000-57132000 r-xp 00000000 03:05 483876 /usr/local/javadirs/jdk1.3.1/jre/lib/i386/libfontmanager.so
57132000-57142000 rw-p 00089000 03:05 483876 /usr/local/javadirs/jdk1.3.1/jre/lib/i386/libfontmanager.so
57a96000-57ac5000 r-xp 00000000 03:05 483877 /usr/local/javadirs/jdk1.3.1/jre/lib/i386/libjpeg.so
57ac5000-57ac6000 rw-p 0002e000 03:05 483877 /usr/local/javadirs/jdk1.3.1/jre/lib/i386/libjpeg.so

Local Time = Wed Nov 10 06:41:37 2004
Elapsed Time = 139155
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002CC
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#:

================hs_err_pidXXXX.log ========================


Is there any work around for the above???

thanks & regards,
 
Ranch Hand
Posts: 1970
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Various versions of JVM have various faults, where they crash, instead of throwing OutOfMemoryError. Also, you can occasionally run out of other types of resource than Java heap; OutOfMemoryError is specific to running out of Java heap.

However, stepping back, are you sure that your application does not have a memory leak? You described it as a TCP client program, which does not sound to me like a memory-hungry application. If there is a leak, and you fix it, then this and other problems will likely go away.
 
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Core dumps are always tough, but you're running an unsupported JVM on an unsupported O/S (that is, both are past EOL).

Since the Linux 2.4 kernel has an totally abhorant thread model I'd really encourage an upgrade. Java never played well with this model and, in my experience, things improved greatly with the 2.6 kernel and the 1.4 JDK.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic