You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2008/10/20 12:36:21 UTC
DO NOT REPLY [Bug 46041] New: Tomcat service is terminated
unexpectedly (tcnative-1.dll)
https://issues.apache.org/bugzilla/show_bug.cgi?id=46041
Summary: Tomcat service is terminated unexpectedly (tcnative-
1.dll)
Product: Tomcat 5
Version: 5.5.26
Platform: PC
OS/Version: Windows Server 2003
Status: NEW
Severity: critical
Priority: P2
Component: Native:Integration
AssignedTo: dev@tomcat.apache.org
ReportedBy: mszpak@wp.pl
Created an attachment (id=22759)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=22759)
VM's stacktrace
There is a problem with Tomcat 5.5.26 using native DLL on Windows 2003. The
service is terminated unexpectedly (regarding to the system logs). It happens
very irregular (sometimes a few times in an hour, sometimes once per week). In
the stack trace (attached) there is:
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x58d845a4, pid=3472, tid=588
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_16-b02 mixed mode)
# Problematic frame:
# C [tcnative-1.dll+0x45a4]
Which points to the native library. I have seen quite old (from 2006) bug
38898, but there in a stacktrace jvm.dll is mentioned, so I'm not sure if it's
a duplicate.
I don't see any other problems in tomcat logs (there was an issue with
OutOfMemoryError some time earlier, but currently Tomcat can use 1,25GB and it
seems to be enough). It's a test system with 1GB RAM + 1,5GB swap on a VMWare
Server.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46041] Tomcat service is terminated unexpectedly
(tcnative-1.dll)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46041
--- Comment #2 from Filip Hanik <fh...@apache.org> 2008-10-20 07:54:04 PST ---
The current thread running
=>0x0072e600 JavaThread "Finalizer" daemon [_thread_in_native, id=588]
if you are on a 32bit system you might be pushing your -Xmx value a bit too
high.
if you lower it, and get OOME, then I would focus on resolving your OOME, since
the memory usage could be related to your crash. Since you crash while the
"Finalizer" thread is running
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46041] Tomcat service is terminated unexpectedly
(tcnative-1.dll)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46041
jfclere <jf...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46041] Tomcat service is terminated unexpectedly
(tcnative-1.dll)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46041
Marcin Zajaczkowski <ms...@wp.pl> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|unspecified |1.1.4
--- Comment #3 from Marcin Zajaczkowski <ms...@wp.pl> 2008-10-21 00:15:05 PST ---
This is a version 1.1.4.0 of tcnative-1.dll. It was downloaded automatically
during the installation process of Tomcat 5.5.26 a few weeks ago.
It was strange, but when the available memory was increased (from 512MB) there
were no errors in Tomcat log, just Java/Tomcat process had been terminated.
But there may be something wrong with a memory usage. In every stacktrace there
is 99% usage of perm gen:
compacting perm gen total 45312K, used 45063K [0x53d70000, 0x569b0000,
0x57d70000)
the space 45312K, 99% used [0x53d70000, 0x56971f40, 0x56972000, 0x569b0000)
Probably It isn't normal. I will try to set up JMX and monitor it.
Currently I switched a configuration to not use native DLL to check if the
problem remains.
Btw, I don't know if it could be a reason, but with your suggestion it read
some Java documnetn and there are suggested to set maximum head size to 1GB for
32-bits machine. I will try to lower it.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46041] Tomcat service is terminated unexpectedly
(tcnative-1.dll)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46041
--- Comment #4 from Rainer Jung <ra...@kippdata.de> 2008-10-22 02:13:54 PST ---
99% perm is not necessarily a problem. The default Max size of perm depends on
the platform, Java version and sometimes on the available hardware ressources,
but often it is 64m. Unless you configure it explicitely, it will start with a
smaller perm space and then add something to it when needed and up until to the
max.
I guess in your case the max. will be 64m and the 99% (of 45312K) simply means
you don't yet need the maximum.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46041] Tomcat service is terminated unexpectedly
(tcnative-1.dll)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46041
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|Native:Integration |Library
Product|Tomcat 5 |Tomcat Native
Version|5.5.26 |unspecified
--- Comment #1 from Mark Thomas <ma...@apache.org> 2008-10-20 07:02:15 PST ---
Is there always an OOM before the crash?
What version of TC native are you using?
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org