Help on JVM at Solaris 10.x
Hi
Currently we have Solaris 8.x installed and we have JVM version of 1.3 installed in it. Now we are going to upgraed the OS to Solaris 10.x. I want to know whether we need to upgrade the JVM to accomodate the new OS?
Regards
Ravi.
[http://java.sun.com/javase/6/webnotes/trouble/TSG-VM/html/crashes.html]
Similar Messages
-
Help me in Installing Solaris Express, Developer Edition X 86
Hi,
Help me in installing Solaris Express, Developer Edition
When i am trying to install Solaris, system hangs and the moniter is switcher off when the system goes in GUI mode.
i have intel 945GTP mother board with as on board Intel Graphics Media Accelerator Drives , Chipset -> Intle 945G , 160 SATA Hard Disk, 1 GB DDR2 Ram , P4 3.Ghz Processer , on board Intel PRO/100 VE Network Card.
Please,Help me.
Thanking you,
P.Sathish KumarHello,
first of all: Try to run the HCTS (Hardware
Compatibility Test Suite) first, it's available
here:
http://www.sun.com/bigadmin/hcl/hcts/device_detect.htm
l
This you can run from Windows, and it will list all
hardware that has drivers, and all those, that do not
have drivers (including some public domain drivers).
After that, you have the possibility to install
Solaris WITHOUT a GUI, use one of the two "terminal"
modes. The first Is still a GUI, as it only starts X
and opens a terminal, in which then the installer
runs. The second does NOT start X, but runs the
installer on the console. Try this one, and once you
get through that, you can afterwards figure out the
settings of the Xserver.Hi ,
i have installed the solaris using console.
Still GUI is not starting, the moniter is switched off when GUI gets started
I used Hardware Compatibility Test Suite, its say that system is supported
by Solaris.
Should i have change BIOS setting to stated the system
Bye
P.Sathish Kumar -
Help me in installing Solaris Express, Developer Edition X86
Hi,
Help me in installing Solaris Express, Developer Edition
When i am trying to install Solaris, system hangs and the moniter is switcher off when the system goes in GUI mode.
i have intel 945GTP mother board with as on board Intel Graphics Media Accelerator Drives , Chipset -> Intle 945G , 160 SATA Hard Disk, 1 GB DDR2 Ram , P4 3.Ghz Processer , on board Intel PRO/100 VE Network Card.
Please,Help me.
Thanking you,
P.Sathish KumarHello,
first of all: Try to run the HCTS (Hardware
Compatibility Test Suite) first, it's available
here:
http://www.sun.com/bigadmin/hcl/hcts/device_detect.htm
l
This you can run from Windows, and it will list all
hardware that has drivers, and all those, that do not
have drivers (including some public domain drivers).
After that, you have the possibility to install
Solaris WITHOUT a GUI, use one of the two "terminal"
modes. The first Is still a GUI, as it only starts X
and opens a terminal, in which then the installer
runs. The second does NOT start X, but runs the
installer on the console. Try this one, and once you
get through that, you can afterwards figure out the
settings of the Xserver.Hi ,
i have installed the solaris using console.
Still GUI is not starting, the moniter is switched off when GUI gets started
I used Hardware Compatibility Test Suite, its say that system is supported
by Solaris.
Should i have change BIOS setting to stated the system
Bye
P.Sathish Kumar -
Help required to install solaris 10 in virtual box 4.1.2 on a win xp sp3 mc
Hey can u help me to install Solaris using Virtual box 4.1.2 i hav downloaded and just installed Virtual box 4.1.2 and an iso image of the available solaris 10
Please help
regards
fel208Moderator Action:
This inquiry was initially posted to the Predictive Self Healing forum for some unfathomable reason.
It has now been moved to the Oracle VM and Virtualization forum for closer topic alignment.
Advice to original poster:
If you couldn't read enough posts to figure out which forum was appropriate, how are you going to be able to read replies to your question? You should go back to wherever you found Virtualbox and Solaris and read the product documenteation. Installation instructions are already there. -
Help on JVM Crash with core dump on solaris - 1.5_17
Some times in my load test scenarios on sun os boxes JVM crashing with core dump. Here is some dump from the file
# An unexpected error has been detected by HotSpot Virtual Machine:
# SIGSEGV (0xb) at pc=0xfea07f40, pid=1564, tid=10
# Java VM: Java HotSpot(TM) Server VM (1.5.0_17-b04 mixed mode)
# Problematic frame:
# V [libjvm.so+0x207f40]
--------------- T H R E A D ---------------
Current thread (0x0014e220): JavaThread "CompilerThread1" daemon [_thread_in_native, id=10]
siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x00000000
Registers:
O0=0x00000010 O1=0x019c1960 O2=0x01e00ec0 O3=0x002bdc48
O4=0x01042c68 O5=0xc467eb4c O6=0xc467e330 O7=0x01042c68
G1=0x01e00ea0 G2=0xff014c94 G3=0x000000e6 G4=0x01c5a4e4
G5=0x01736e20 G6=0x00000000 G7=0xfb9e4200 Y=0x00000000
PC=0xfea07f40 nPC=0xfea07f44
--------------- S Y S T E M ---------------
OS: Solaris 10 5/08 s10s_u5wos_10 SPARC
Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 24 March 2008
uname:SunOS 5.10 Generic_127127-11 sun4v (T2 libthread)
rlimit: STACK 8192k, CORE infinity, NOFILE 65536, AS infinity
load average:2.73 2.67 2.21
CPU:total 32 has_v8, has_v9, has_vis1, has_vis2, is_ultra3, is_sun4v, is_niagara1
Memory: 8k page, physical 8257536k(366576k free)
vm_info: Java HotSpot(TM) Server VM (1.5.0_17-b04) for solaris-sparc, built on Nov 10 2008 01:58:40 by unknown with unknown Workshop:0x550
Here is the stack dump of the kill quit thread
----------------- lwp# 10 / thread# 10 --------------------
ff2c5bf0 lwpkill (6, 0, ff2f2e10, ff2a8bd0, ffffffff, 6) + 8
ff2410f8 abort (7400, 1, 7c00, ad314, ff2f12d8, 0) + 110
fee7e58c __1cCosFabort6Fi_v_ (1, 0, ff013084, fefde000, 7d94, 7c00) + 58
fef0de48 __1cHVMErrorOreport_and_die6M_v_ (0, ff03a640, ff033ff4, 1, fee82c88, ff033ff4) + c84
fea74138 JVM_handle_solaris_signal (b, c467e2b0, c467dff8, 8000, ff032fa0, 14e220) + ab4
ff2c4b28 __sighndlr (b, c467e2b0, c467dff8, fea7364c, 0, 1) + c
ff2b9b00 call_user_handler (b, ffbffeff, c, 0, fb9e4200, c467dff8) + 3b8
fea07f40 __1cMPhaseChaitinFSplit6MI_I_ (c467ec2c, 0, 0, 3677ac, 398, c) + 3410
fea13c68 __1cMPhaseChaitinRRegister_Allocate6M_v_ (c467eb4c, e88, dc0, ff0137d8, c467fb14, 48d) + 720
fea17c64 __1cHCompileICode_Gen6M_v_ (c467f218, 9e0c, 9c00, fef56b15, 0, c467ec2c) + 2b0
fea7ff14 __1cHCompile2t5B6MpnFciEnv_pnKC2Compiler_pnIciMethod_ii_v_ (c467f218, 0, 346c8, 0, fef569b8, 0) + c08
fea75fb8 __1cKC2CompilerOcompile_method6MpnFciEnv_pnIciMethod_i_v_ (c467fb14, fef42a90, 1e40f58, 244, 346c8, d1800000) + b0
fea76b68 __1cNCompileBrokerZinvoke_compiler_on_method6FpnLCompileTask__v_ (908928, 14e7fc, 13c900, 14e220, fef57367, c467fb14) + 4cc
feb3357c __1cNCompileBrokerUcompiler_thread_loop6F_v_ (ff0330b8, 13c8a0, 14e220, c5e67700, 14e7f8, 0) + 44c
feadbd20 __1cKJavaThreadDrun6M_v_ (14e220, ff037040, 7820, 0, 7800, 9400) + 2b0
fee7e0a8 __1cG_start6Fpv_0_ (14e220, 61c, fefde000, 0, 5874, 5800) + 208
ff2c49fc lwpstart (0, 0, 0, 0, 0, 0)
Any idea on this dump, helps me a lot.
Thanks.[http://java.sun.com/javase/6/webnotes/trouble/TSG-VM/html/crashes.html]
-
Help on JVM installation in Solaris 10
Hi
Currently we have j2sdk1_3_1_04 installed in Solaris 8.x.
We are going to migrate the OS to Solrais 10.
Can we install j2sdk1_3_1_04 in Solaris 10?
Do we need any patches to be installed to have j2sdk1_3_1_04 in Solaris 10?
Regards
Ravi.I have the same issue, but will be trying the instructions in the link attached:
http://chrismiles.livejournal.com/25439.html -
Has anyone run the 64-bit JVM (-d64) on Solaris 8 or 9?
1.4.1
http://java.sun.com/products/archive/j2se/1.4.1_05/index.html
1.4.2
http://java.sun.com/j2se/1.4.2/install-solaris-64.html
Support tells me BEA has not certified WLS for use with the 64-bit JVM. However,
according to the following link the -server option is implicit to using the 64-bit
JVM:
http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/java.html
======================
-d32
-d64
Specifies whether the program is to be run in a 32-bit or 64-bit environment.
On Solaris these correspond to the ILP32 and LP64 data models, respectively. The
-d64 option may only be used on 64-bit Solaris systems.
Currently only the Java HotSpot Server VM supports 64-bit operation, and the "-server"
option is implicit with the use of -d64. This is subject to change in a future
release.
If neither -d32 nor -d64 is specified, the default is to run in a 32-bit environment.
This is subject to change in a future release.
======================
If BEA does not officially support the 64-bit JVM on either 1.4.1 or 1.4.2, then
why do the default startup scripts coming with WLS 8.1 sp2 (startWebLogic.sh,
comm_Env.sh) allow for the use of the -server option, which, according to Sun's
docs, means you are using the 64-bit JVM?
If anyone has used the 64-bit JVM, what kind of performance gain, if any, are
they seeing?
Thanks for any help.My dear friend,
You understood java docs incorrectly. That say that if you specify -d64, -server
is implicit, not the other way.
Regards
"achen" <[email protected]> wrote:
>
Has anyone run the 64-bit JVM (-d64) on Solaris 8 or 9?
1.4.1
http://java.sun.com/products/archive/j2se/1.4.1_05/index.html
1.4.2
http://java.sun.com/j2se/1.4.2/install-solaris-64.html
Support tells me BEA has not certified WLS for use with the 64-bit JVM.
However,
according to the following link the -server option is implicit to using
the 64-bit
JVM:
http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/java.html
======================
-d32
-d64
Specifies whether the program is to be run in a 32-bit or 64-bit environment.
On Solaris these correspond to the ILP32 and LP64 data models, respectively.
The
-d64 option may only be used on 64-bit Solaris systems.
Currently only the Java HotSpot Server VM supports 64-bit operation,
and the "-server"
option is implicit with the use of -d64. This is subject to change in
a future
release.
If neither -d32 nor -d64 is specified, the default is to run in a 32-bit
environment.
This is subject to change in a future release.
======================
If BEA does not officially support the 64-bit JVM on either 1.4.1 or
1.4.2, then
why do the default startup scripts coming with WLS 8.1 sp2 (startWebLogic.sh,
comm_Env.sh) allow for the use of the -server option, which, according
to Sun's
docs, means you are using the 64-bit JVM?
If anyone has used the 64-bit JVM, what kind of performance gain, if
any, are
they seeing?
Thanks for any help. -
Could not start/run 64-bit JVM on solaris
Hi,
Basically I wanted to increase the heap size of java on solaris to 4GB .
some where I read ,2GB is the max limit for 32-bit JVM,
Hence I used 64-bit setting to start JVM,
I added "-d64" option.
after this ,when I tried to start weblogic (which calls java) ,it failed to start . giving below error
execv(): No such file or directory
Error trying to exec /data/mss/bea/jdk142_04/jre/bin/sparcv9/java.
Check if file exists and permissions are set correctly.
Failed to start a 64-bit JVM process from a 32 bit JVM.
Verify all necessary J2SE components have been installed.
(Solaris SPARC 64-bit components must be installed after 32-bit components.)
Environment details are :
os.arch = sparc
os.name = SunOS
os.version = 5.9
java.version = 1.4.2_04
java.vm.info = mixed mode
java.vm.name = Java HotSpot(TM) Server VM
Can any one help me on this issue.
setting heap size of java on solaris to 4GB ??
ThanksWell...
Check if file exists and permissions are setcorrectly.
Verify all necessary J2SE components have beeninstalled.
Did you do that?I am logged using su
I think i must be having all permissions .
Is there any way to verify "J2SE components have been installed"
please refer below url for this kind the bug in sun website.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6181254
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6181254 -
Urgent! Please help. JVM Perm size OutOfMemory with wls9.1
Sorry for posting this here since I could not find a general weblogic JVM trouble shooting newsgroup. Basically we have an issue in production where OutOfMemory Error occurred in the Perm space after server has been up for half an hour. We recently upgraded from wls8.1+sun hotspot 1.4.2 to wls9.1 + Sun hotspot 1.5.0_06. Originally under wls8.1, the perm space usages was pretty stable at about 80MB (Perm space was set to 128MB). But now 128MB seemed being filled up very quickly. I found the increase size in weblogic.jar and rt.jar both from weblogic upgrade and sun jre upgrade. So last night the production server's perm space size was increased to 192MB. This morning everything looked fine, perm space usage was stable at about 120MB. However, at noon, suddendly 2 servers the perm space started being filled up quickly. Half an hour later, so was the other app server.
Have anybody seen this issue before? Could it be an issue in some weblogic subsystem with jre 1.5.0_06 since there is no code change made to the application? Is 192MB too aggressive which could cause some issue?
Thanks in advance. Any help will be greatly appreciated.
BingBing Zou wrote:
Sorry for posting this here since I could not find a general weblogic JVM trouble shooting newsgroup. Basically we have an issue in production where OutOfMemory Error occurred in the Perm space after server has been up for half an hour. We recently upgraded from wls8.1+sun hotspot 1.4.2 to wls9.1 + Sun hotspot 1.5.0_06. Originally under wls8.1, the perm space usages was pretty stable at about 80MB (Perm space was set to 128MB). But now 128MB seemed being filled up very quickly. I found the increase size i
n weblogic.jar and rt.jar both from weblogic upgrade and sun jre upgrade. So last night the production server's perm space size was increased to 192MB. This morning everything looked fine, perm space usage was stable at about 120MB. However, at noon, suddendly 2 servers the perm space started being filled up quickly. Half an hour later, so was the other app server.
Have anybody seen this issue before? Could it be an issue in some weblogic subsystem with jre 1.5.0_06 since there is no code change made to the application? Is 192MB too aggressive which could cause some issue?
Thanks in advance. Any help will be greatly appreciated.
BingHi Bing, I wich I could help you more directly but I suggest you contact BEA
official support. They are the best for knowing or sifting through all
possibly relevant changes and/or fixes for a given set of symptoms.
Joe -
Need help building boost_1_37_0 on Solaris 10 U6 with Sun Studio 12
Hi,
Ok, please bear with me here. I've tried many different sets of instructions, and haven't had success with any of them (including the ones at http://blogs.sun.com/sga/category/Boost).
Operating System: Solaris 10 x86 U6
Compiler: Sun Studio 12 (SUNCC version 5.9)
Boost version: 1.37.0
The ONLY part of boost that I need is regex. I've never built external libraries before and building boost on Solaris seems a rather daunting task. So, could someone please explain, as clearly as possible, how do I build the boost::regex library using SUNCC?
I know this is a very broad topic, but since I haven't had any luck with any existing instructions that google turns up, alas I am here.
Thanks in advance if someone can help me,
~Slow
Note: I don't need any special options, any special, non-standard install paths, nothing. Just a straight, stock, boost install.
Edited by: SlowToady on Nov 10, 2008 2:18 PMFirst, be sure you have the current patches for Sun Studio 12. You can get them here:
http://developers.sun.com/sunstudio/downloads/patches/
Please install the current C++ compiler patch, the C compiler patch, and the common back-end compiler patch.
You should then be able to build BOOST 1.37.0. The only problem I know of has been filed as CR 6767881, which results in an incorrect complaint about a constructor not being accessible. But I don't think that one affects regex.
If you running into some other problem after patching the compiler, please post enough detail that we can investigate it.
Questions about how to build just a portion of BOOST are probably best addressed to a BOOST forum. -
Need Help!!! Solaris 8 on SPARC
Hello
I'm trying to install Solaris 8 on ULTRA1 170.
I cut all 3 CD's without any problem. Booting from the Install CD with "BOOT CDROM" command. It goes through the CD, reboots the machine and asks for the Software CD1.
I put in CD1 click OK and it start to initialize the install. It goes about quarter of the bar and the bar disappears. I'm at the KIOSK screen and nothing happens (no cd activity). I waited a long-long time here.
Solaris 7 was running fine on this system and I even reinstalled it just to make sure it is not hardware related. Downloaded and burnt software cd1 twice. No difference.
What am I doing wrong? Please help!!! I�m going crazy. If you don't understand my exact problem just ask.
TIA chrisFixed it
I had to boot from Software CD1 and I used jump start installer. Insted of web start what apparently did not work for me. -
Need help - setup network in solaris
Hello! Today I install Solaris 10 for learning in my laptop and have some trouble. Please help me
1. Set up network interface for wi-fi card iwi0
(a. ifconfig iwi0 plumb
b. wificonfig iwi0 connect airJet
c. ifconfig iwi0 dhcp)
2. Set up default route (route add default 192.168.100.2 (its my access point with dhcp server))
Ping -s 192.168.100.2 -> done
But when I trying in Firefox open any url - recieve error "host not found"
okay. in terminal i put
ping google.com
and recieve answer
host not found
What is my problem?
Thanks for u answers.Try changing hosts line in /etc/nsswitch.conf to:
hosts dns files
so that hostnames will be resolved via your dns servers. You also need to enter dns server info in /etc/resolv.conf.
Here's a tutorial: [Configuring Networking|http://solaris-x86.org/documents/tutorials/network.mhtml ] (kind of dated, but most of the info is still relevant)
john -
Help! Authentication in Solaris 8 to start iplanet server
Hello,
We are using iPlanet Web Server 6.1 in Solaris 8.0 . Now
we are stoping and starting the server using the root
login. We could not start and stop the server using
other login(roles, normal user, etc).
I got permission denied error.
Which authorization or authentication we have to assign
to the role to start and stop the iplanet web server.
What are the changes i have to make in the files user_attr,
prof_attr,auth_attr,exec_attr.
please help me,
thanks in advance,
balachandar.You may want to try the WebServer forum located at: http://softwareforum.sun.com/NASApp/jive/forum.jsp?forum=16
-
JDriver for Oracle crashes JVm on solaris
Hi,
I'm using the weblogic jDriver/XA for oracle with oracle 8.1.7 on solaris 2.8.
The weblogic version is 6.1 SP2.
The JVM randomly crashes with this error:
Is the jDriver/XA that comes with weblogic stable ?
Has the jDriver that comes with wlserver 6.1 SP3 fixed this problem ?
Unexpected Signal : 11 occurred at PC=0xfe557f64
Function name=JVM_InternString
Library=/bea/jdk131/jre/lib/sparc/hotspot/libjvm.so
Current Java thread:
at weblogic.jdbc.oci.xa.XA.native_start(Native Method)
at weblogic.jdbc.oci.xa.XA.start(XA.java:70)
at weblogic.jdbc.oci.xa.XADataSource.start(XADataSource.java:640)
at weblogic.jdbc.jta.DataSource.detectedUnavailable(DataSource.java:445)
at weblogic.transaction.internal.ResourceDescriptor$2.execute(ResourceDescriptor.java:991)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Dynamic libraries:
0x10000 /bea/jdk131/jre/bin/../bin/sparc/native_threads/java
0xff350000 /usr/lib/libthread.so.1
0xff390000 /usr/lib/libdl.so.1
0xff200000 /usr/lib/libc.so.1
0xff330000 /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1
0xfe400000 /bea/jdk131/jre/lib/sparc/hotspot/libjvm.so
0xff2e0000 /usr/lib/libCrun.so.1
0xff1e0000 /usr/lib/libsocket.so.1
0xff100000 /usr/lib/libnsl.so.1
0xff0d0000 /usr/lib/libm.so.1
0xff310000 /usr/lib/libw.so.1
0xff0b0000 /usr/lib/libmp.so.2
0xff080000 /bea/jdk131/jre/lib/sparc/native_threads/libhpi.so
0xff050000 /bea/jdk131/jre/lib/sparc/libverify.so
0xfe7c0000 /bea/jdk131/jre/lib/sparc/libjava.so
0xff020000 /bea/jdk131/jre/lib/sparc/libzip.so
0xfe3b0000 /usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.2
0xfe390000 /bea/jdk131/jre/lib/sparc/libnet.so
0xfaed0000 /usr/lib/nss_files.so.1
0xd9200000 /bea/wlserver6.1/lib/solaris/oci817_8/libweblogicoci37.so
0xd8400000 /u01/app/oracle/product/8.1.7/lib/libclntsh.so.8.0
0xfad90000 /usr/lib/libC.so.5
0xfaea0000 /u01/app/oracle/product/8.1.7/lib/libwtc8.so
0xface0000 /usr/lib/libgen.so.1
0xfacc0000 /usr/lib/libsched.so.1
0xfaca0000 /usr/lib/libaio.so.1
0xfac80000 /bea/wlserver6.1/lib/solaris/oci817_8/libweblogicoxa37.so
0xfac10000 /bea/jdk131/jre/lib/sparc/libioser12.so
0xdeae0000 /bea/jdk131/jre/lib/sparc/libawt.so
0xd7480000 /bea/jdk131/jre/lib/sparc/motif21/libmawt.so
0xdc8b0000 /bea/jdk131/jre/bin/../lib/sparc/libmlib_image.so
0xd7200000 /usr/dt/lib/libXm.so.4
0xd7190000 /usr/openwin/lib/libXt.so.4
0xdc7d0000 /usr/openwin/lib/libXext.so.0
0xdce60000 /usr/openwin/lib/libXtst.so.1
0xd7080000 /usr/openwin/lib/libX11.so.4
0xdc7b0000 /usr/openwin/lib/libSM.so.6
0xdc6d0000 /usr/openwin/lib/libICE.so.6
0xdc6a0000 /usr/openwin/lib/libdga.so.1
0xd6f80000 /bea/jdk131/jre/lib/sparc/libfontmanager.so
0xdc5a0000 /usr/openwin/lib/libdps.so.5
0xdc4c0000 /bea/jdk131/jre/lib/sparc/libdcpr.so
0xdc3b0000 /bea/jdk131/jre/lib/sparc/libcmm.so
0xdc2c0000 /bea/jdk131/jre/lib/sparc/libjpeg.so
0xdc890000 /bea/wlserver6.1/lib/solaris/libmuxer.so
0xdc4a0000 /usr/ucblib/libucb.so.1
0xdc790000 /usr/lib/libresolv.so.1
0xdc1c0000 /usr/lib/libelf.so.1
Local Time = Sun Aug 25 19:12:47 2002
Elapsed Time = 21231
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002BD 01
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
# Java VM: Java HotSpot(TM) Client VM (1.3.1_04-b02 mixed mode)
# An error report file has been saved as hs_err_pid342.log.
# Please refer to the file for further information.We have observed some problems for XA in oracle 817 client. You should use 901 client and 901 jDriver
to talk to 817 database as a solution.
Mitesh
prajod wrote:
Hi,
I'm using the weblogic jDriver/XA for oracle with oracle 8.1.7 on solaris 2.8.
The weblogic version is 6.1 SP2.
The JVM randomly crashes with this error:
Is the jDriver/XA that comes with weblogic stable ?
Has the jDriver that comes with wlserver 6.1 SP3 fixed this problem ?
Unexpected Signal : 11 occurred at PC=0xfe557f64
Function name=JVM_InternString
Library=/bea/jdk131/jre/lib/sparc/hotspot/libjvm.so
Current Java thread:
at weblogic.jdbc.oci.xa.XA.native_start(Native Method)
at weblogic.jdbc.oci.xa.XA.start(XA.java:70)
at weblogic.jdbc.oci.xa.XADataSource.start(XADataSource.java:640)
at weblogic.jdbc.jta.DataSource.detectedUnavailable(DataSource.java:445)
at weblogic.transaction.internal.ResourceDescriptor$2.execute(ResourceDescriptor.java:991)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Dynamic libraries:
0x10000 /bea/jdk131/jre/bin/../bin/sparc/native_threads/java
0xff350000 /usr/lib/libthread.so.1
0xff390000 /usr/lib/libdl.so.1
0xff200000 /usr/lib/libc.so.1
0xff330000 /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1
0xfe400000 /bea/jdk131/jre/lib/sparc/hotspot/libjvm.so
0xff2e0000 /usr/lib/libCrun.so.1
0xff1e0000 /usr/lib/libsocket.so.1
0xff100000 /usr/lib/libnsl.so.1
0xff0d0000 /usr/lib/libm.so.1
0xff310000 /usr/lib/libw.so.1
0xff0b0000 /usr/lib/libmp.so.2
0xff080000 /bea/jdk131/jre/lib/sparc/native_threads/libhpi.so
0xff050000 /bea/jdk131/jre/lib/sparc/libverify.so
0xfe7c0000 /bea/jdk131/jre/lib/sparc/libjava.so
0xff020000 /bea/jdk131/jre/lib/sparc/libzip.so
0xfe3b0000 /usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.2
0xfe390000 /bea/jdk131/jre/lib/sparc/libnet.so
0xfaed0000 /usr/lib/nss_files.so.1
0xd9200000 /bea/wlserver6.1/lib/solaris/oci817_8/libweblogicoci37.so
0xd8400000 /u01/app/oracle/product/8.1.7/lib/libclntsh.so.8.0
0xfad90000 /usr/lib/libC.so.5
0xfaea0000 /u01/app/oracle/product/8.1.7/lib/libwtc8.so
0xface0000 /usr/lib/libgen.so.1
0xfacc0000 /usr/lib/libsched.so.1
0xfaca0000 /usr/lib/libaio.so.1
0xfac80000 /bea/wlserver6.1/lib/solaris/oci817_8/libweblogicoxa37.so
0xfac10000 /bea/jdk131/jre/lib/sparc/libioser12.so
0xdeae0000 /bea/jdk131/jre/lib/sparc/libawt.so
0xd7480000 /bea/jdk131/jre/lib/sparc/motif21/libmawt.so
0xdc8b0000 /bea/jdk131/jre/bin/../lib/sparc/libmlib_image.so
0xd7200000 /usr/dt/lib/libXm.so.4
0xd7190000 /usr/openwin/lib/libXt.so.4
0xdc7d0000 /usr/openwin/lib/libXext.so.0
0xdce60000 /usr/openwin/lib/libXtst.so.1
0xd7080000 /usr/openwin/lib/libX11.so.4
0xdc7b0000 /usr/openwin/lib/libSM.so.6
0xdc6d0000 /usr/openwin/lib/libICE.so.6
0xdc6a0000 /usr/openwin/lib/libdga.so.1
0xd6f80000 /bea/jdk131/jre/lib/sparc/libfontmanager.so
0xdc5a0000 /usr/openwin/lib/libdps.so.5
0xdc4c0000 /bea/jdk131/jre/lib/sparc/libdcpr.so
0xdc3b0000 /bea/jdk131/jre/lib/sparc/libcmm.so
0xdc2c0000 /bea/jdk131/jre/lib/sparc/libjpeg.so
0xdc890000 /bea/wlserver6.1/lib/solaris/libmuxer.so
0xdc4a0000 /usr/ucblib/libucb.so.1
0xdc790000 /usr/lib/libresolv.so.1
0xdc1c0000 /usr/lib/libelf.so.1
Local Time = Sun Aug 25 19:12:47 2002
Elapsed Time = 21231
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002BD 01
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
# Java VM: Java HotSpot(TM) Client VM (1.3.1_04-b02 mixed mode)
# An error report file has been saved as hs_err_pid342.log.
# Please refer to the file for further information. -
Could some some please help me with this i hava a programe which is reading email from amd email sever using javamail.
My problem is that when this pgrograme have to read more than 27 thousand emails and filter them at the same time but as soon as i get to 5900 the jvm runs out of memory. i have tried increaing memory using -Xms and Xms this seem to work but i still get memory leaking could some one have a look at my code i would be very happy to any light at to why or where the leak is comming from.
at the moment i have managed to track the leak to the "searchEMail" method
if you cam help my email is [email protected] or [email protected]
=====================================================================
EmailFilter.java
wokoli
=====================================================================
import java.io.*;
import java.util.*;
import java.awt.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.swing.JProgressBar;
import javax.swing.JWindow;
public class EmailFilter
extends Authenticator implements EmailHelper
protected String from=null;
protected Session session=null;
protected PasswordAuthentication authentication=null;
private Properties props=null;
private TreeMap bounced=null;
private long start=0;
private long end=0;
private PrintWriter out=null;
private int blockSize=100;
private Store store=null;
public EmailFilter(Properties props){
this(null, null,props);
public EmailFilter(String user, String host,Properties props)
try{
if(props==null)
props = new Properties();
System.out.println("Reading properties file...");
props.load(new FileInputStream("config.properties"));
from = user + '@' + host;
props.setProperty("mail.user", user);
props.setProperty("mail.host", host);
props.setProperty("mail.password",user);
}catch(Exception e){
e.printStackTrace();
authentication = new PasswordAuthentication(props.getProperty("mail.user"),props.getProperty("mail.password"));
props.setProperty("mail.store.protocol", "pop3");
props.setProperty("mail.transport.protocol", "smtp");
session = Session.getInstance(props, this);
blockSize=Integer.parseInt(props.getProperty(BLOCKSIZE));
this.props=props;
processCsvFile();
private int column=0;
protected void processCsvFile()
Recipient resp=null;
BufferedReader reader=null;
try {
File file=new File("report.csv");
if(!file.exists())
return;
System.out.println("Reading report.cvs file...");
reader= new BufferedReader(new FileReader(file));
StreamTokenizer parser = new StreamTokenizer(reader);
parser.wordChars(' ', ' ');
parser.wordChars('@', '@');
parser.wordChars(':', ':');
parser.wordChars('-', '-');
parser.wordChars('"', '"');
parser.eolIsSignificant(true);
int nxtToken=0;
while ((nxtToken=parser.nextToken()) != StreamTokenizer.TT_EOF )
if(nxtToken==StreamTokenizer.TT_EOL)
column=0;
resp=new BouncedEmail();
if(parser.lineno()>1)
switch (parser.ttype)
case StreamTokenizer.TT_NUMBER:
switch (column)
case 1:{
resp.setCount((int)parser.nval);
column++; break;
break;
case StreamTokenizer.TT_WORD:
switch (column)
case 0:{
resp.setEmail(parser.sval);
column++; break;}
case 2:{
String str=parser.sval.replace('"',' ');;
resp.setDate(str.trim());
column++;break;}
case 3:{
String str=parser.sval.replace('"',' ');;
resp.setTime(str.trim());
column++; break;}
break;
default:
addBounced(resp);
} catch (IOException e){
e.printStackTrace();
}finally{
try{
if(reader!=null)
reader.close();
}catch(IOException ioe){
ioe.printStackTrace();
public PasswordAuthentication getPasswordAuthentication(){
return authentication;
private boolean searchEmail(MimeMessage msg)
String criteria=null;
String str=null;
try{
criteria=(String)props.get(FROM);
str=(String)msg.getFrom()[0].toString();
if(criteria!=null && criteria.length()>1 && str!=null && str.length()>1)
if(doSearch(str,criteria)==BOUNCED)
return BOUNCED;
criteria=(String)props.get(SUBJECT);
str=(String)msg.getSubject();
if(criteria!=null && criteria.length()>1 && str!=null && str.length()>1)
if(doSearch(str,criteria)==BOUNCED)
return BOUNCED;
/*criteria=(String)props.get(BODY);
Object o = msg.getContent();
if (o instanceof String) {
str=(String)o;
} else if (o instanceof Multipart) {
Multipart mp = (Multipart)o;
//int count = OutOfMemoryErrormp.getCount();
//for (int i = 0; i < count; i++)
//dumpPart(mp.getBodyPart(i));
} else if (o instanceof InputStream) {
//System.out.println("--This is just an input stream");
//InputStream is = (InputStream)o;
//int c;
//while ((c = is.read()) != -1)
// System.out.write(c);
if(criteria!=null && criteria.length()>1 && str!=null && str.length()>1)
if(doSearch(str,criteria)==BOUNCED)
return BOUNCED;
}catch(OutOfMemoryError oome){
System.out.println("while in searchEmail "+oome);
System.out.println("while in searchEmail "+oome.getStackTrace());
finalize();
System.exit(0);
catch(javax.mail.internet.AddressException ae){}
catch(NullPointerException npe){}
catch(Exception ex){
//ex.printStackTrace();
ex.getMessage();
return !BOUNCED;
//str is the content that you wnat to search and criteria is the
//what you are searching for
//str -> From, Subject or Body from Message Object
//criteria -> From, Subject or Body from Prop file
private boolean doSearch(String str,String criteria)
if(str==null || criteria ==null)
return !BOUNCED;
StreamTokenizer token=new StreamTokenizer((Reader)new StringReader(criteria));
StringSearch sch=new StringSearch(str.getBytes());
token.wordChars(' ', ' ');
token.wordChars('@', '@');
token.wordChars(':', ':');
token.wordChars('-', '-');
token.wordChars('"', '"');
token.eolIsSignificant(true);
int nxtToken=0;
try{
while ((nxtToken=token.nextToken()) != StreamTokenizer.TT_EOF )
if(token.ttype==StreamTokenizer.TT_WORD)
if(sch.indexOf(token.sval)>-1)
return BOUNCED;
}catch(OutOfMemoryError oome)
System.out.println("while in doSearch ");
oome.printStackTrace();
}catch(IOException ioe){
ioe.printStackTrace();
return !BOUNCED;
public void sendMessage(String to, String subject, String content) throws MessagingException
MimeMessage msg = new MimeMessage(session);
msg.addRecipients(Message.RecipientType.TO, to);
msg.setSubject(subject);
msg.setText(content);
Transport.send(msg);
private void addBounced(Recipient resp)
if(resp==null)
return;
if(bounced==null)
bounced=new TreeMap();
String email =resp.getEmail();
if(email==null)
return;
if(isExisting(email)==null){
bounced.put(email,resp);
private String isExisting(String key)
if(key==null || bounced==null)
return null;
String name=null;
Iterator itr=bounced.keySet().iterator();
while(itr.hasNext())
name=(String)itr.next();
if(name==null)
return null;
if(name.equals(key))
return name;
return null;
private void writeReport()
if(bounced==null)
return;
Recipient resp=null;
File file =null;
try{
if(out==null) //writing for to file for the first time
file=new File("report.csv");
if(file.exists())
System.out.println("Found and deleted report file "+file.delete());
file =new File("report.csv");
out =new PrintWriter(
new BufferedWriter(
new FileWriter(file)),true);
out.println("Email,Count,Last Date Bounced,Lasted Time Bounced");
Iterator itr=bounced.keySet().iterator();
String key=null;
System.out.println("Writing report...");
while(itr.hasNext())
key=(String)itr.next();
resp=(Recipient)bounced.get(key);
out.println(key+","+resp.getCount()+",\""+resp.getDate()+"\",\""+resp.getTime()+"\"");
}catch(Exception ex){
ex.printStackTrace();
}finally{
if(bounced!=null)
bounced.clear();
bounced=null;
out.flush();
private void collectGarbage()
System.out.println("mem before "+Runtime.getRuntime().freeMemory());
Runtime.getRuntime().gc();
System.out.println("mem after "+Runtime.getRuntime().freeMemory());
System.out.println("Garbage collected");
private void createBouncedEmail(String email,String date, String time,int count)
if(email==null)
return;
String name=isExisting(email);
if(name!=null)
Recipient res=(Recipient)bounced.get(name);
bounced.remove(name);
int c=res.getCount();
addBounced(new BouncedEmail(email,res.getDate(),res.getTime(),++c));
}else
addBounced(new BouncedEmail(email,date,time,count));
public void checkInbox(int mode) throws MessagingException, IOException
Folder inbox=null;
// Store store= null;
JProgressBar pbar=null;
JWindow window=null;
try
if (mode <0) return;
boolean show = (mode & SHOW_MESSAGES) > 0;
boolean clear = (mode & CLEAR_MESSAGES) > 0;
String action =
(show ? "Show" : "") +
(show && clear ? " and " : "") +
(clear ? "Clear" : "");
System.out.println("Checking mail on: "+props.getProperty("mail.host"));
store = session.getStore();
System.out.println("Trying to connect to mail server: "+props.getProperty("mail.host"));
store.connect();
System.out.println("Connected on mail server : "+getRequestingSite());
Folder root = store.getDefaultFolder();
inbox = root.getFolder(INBOX);
System.out.println("Opening mail folder for Reading");
inbox.open(Folder.READ_ONLY);
Message[] msgs = inbox.getMessages();
if (msgs.length ==0){
System.out.println("No messages in inbox");
for (int cnt = 0; cnt < msgs.length; cnt++)
MimeMessage msg = (MimeMessage)msgs[cnt];
System.out.println("Reading msg "+cnt);
if(searchEmail(msg)==BOUNCED)
createBouncedEmail(msg.getFrom()[0].toString(),null,null,-1);
if (show)
System.out.println(" From: " + msg.getFrom()[0]);
System.out.println(" Subject: " + msg.getSubject());
System.out.println(" Content: " + msg.getContent());
if (clear)
msg.setFlag(Flags.Flag.DELETED, true);
if((bounced!=null && bounced.size()==blockSize) || cnt==msgs.length-1)
writeReport();
if(cnt%100==0)
collectGarbage();
//writeReport();
//end=new Date().getTime();
//System.out.println("Time complted: "+new Date());
//System.out.println("Time taken to complete: "+new Date(end-start));
}catch(OutOfMemoryError oome)
System.out.println("while in checkInbox ");
oome.printStackTrace();
}catch (AuthenticationFailedException afe){
afe.printStackTrace();
}finally{
if(window!=null)
window.dispose();
if(inbox!=null)
inbox.close(true);
if(store!=null)
store.close();
if(out!=null)
out.close();
protected void finalize()
try{
if(out!=null)
out.close();
if(store!=null)
store.close();
System.out.println("Closing connection...");
}catch(Exception ex){
ex.printStackTrace();
}Cross posted
http://forum.java.sun.com/thread.jsp?thread=429947&forum=4&message=1920034
Maybe you are looking for
-
T code for Material,plant, stock and price data in std sap
Dear All, In Std SAP is der any t-code to get Material,plant, stock and price data in 1 go.. waiting for ur early reply Regards Nainesh
-
Fault message in synchronous send step in BPM
Hi, When executing a synchronous send step in BPM it is possible to handle application errors (fault messages) with an exception branch. But how do you get hold of the actual data in the Fault message(faultText, faultURL, faultDetail etc) for further
-
Mail Reminders Notes - Note disappeared, how to get it back?
Booted up my machine this morning and looked for one of my notes in Mail that I use extensively for daily notes. I have added info to it in the past couple of days that I wanted to retrieve. I can't find the note. I performed a search in Mail and can
-
I performed a permission repair on my Intel iMac (OS X 10.5.5) and received the following message: Warning: SUID file "System/Library/CoreServices/Finder.app/Contents/Resources/OwnerGroupTool" has been modified and will not be repaired. I don't know
-
I keep getting Error code A12E5 whenever I try to download or insteall Adobe Creative Cloud. Should I cancel my membership and learn to do my work on freeware apps?