Are there known Tomcat 6.0
and JDK 1.7.0_02
issues?
I know this is a hard question to answer, if the answer is no. But I need to ask just in case the answer is yes. Also I will accept any solutions to the issues below as answers. Please just share whatever issues you have had, and I will update this question if need be.
Some issues I have run into since upgrading from JDK 1.7.0 to 1.7.0_02 (which I did to avoid the Eclipse's help menus from crashing, due to a Java 1.7.0 bug.):
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
error, which disappeared the next day and then reappeared the third day, with no changes other than reloading Eclipse.Everything seems suspicious.
P.S. JDK 1.7.0_02
is also known as 1.7.0u2
, Java SE 7u2
, Java SE 7 Update 2
, etc.
Oracle
, 64-bit, downloaded from http://www.oracle.com/technetwork/java/javase/downloads/index.html. Exact file downloaded and installed was jdk-7u2-windows-x64.exe
.Tomcat 6.0.33
, downloaded separately from EclipseEclipse Java EE IDE for Web Developers.
, Version: Indigo Release
, Eclipse Platform
, Version: 3.7.0.v20110530-9gF7UHNFFt4cwE-pkZDJ7oz-mj4OSEIlu9SEv0f
, Build id: I20110613-1736
.EDIT: Added system specs above.
When running 64 bits Java with default options (references compaction is off by default), it requires almost twice the amount of memory than with 32 bits.
For Eclipse, open the eclipse.ini
file and double/increase a lot the -Xmx
option.
Of course, your physical memory may not be enough when running some JVMs.
So I recommend you to test the -XX:+UseCompressedOops
HotSpot option with 64 bits JVM and monitor memory usage thanks to jconsole
for instance. You can also read details about that recent option. That option
For Tomcat, create the file bin/setenv.bat
with content:
set JAVA_OPTS="-Xmx1024M -XX:+UseCompressedOops"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With