Date: Tue, 22 Jan 2013 16:03:11 +0100 From: "Ronald Klop" <ronald-freebsd8@klop.yi.org> To: freebsd-java@freebsd.org Subject: Re: Adding remote debugging to tomcat7 Message-ID: <op.wrbirli48527sy@ronaldradial.versatec.local> In-Reply-To: <50FE368E.2010404@gmail.com> References: <50FE368E.2010404@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 22 Jan 2013 07:49:50 +0100, David Demelier <demelier.david@gmail.com> wrote: > Hello there, > > Sorry for cross posting, I'm not on the freebsd-java list. > > I would like to enable remote debugging to tomcat, as seen here > http://wiki.apache.org/tomcat/FAQ/Developing#Q1 it is said to add the > following options to the JVM : > > -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n > > So I have added to the rc.conf > > tomcat7_enable="YES" > tomcat7_java_opts="-XX:MaxPermSize=512m -Xdebug > -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n" > > Note that the first option is only to prevent a PermGen out of space > error. With that setup, tomcat fails to starts with: > > /usr/local/etc/rc.d/tomcat7: WARNING: failed to start tomcat7 > > And in the tomcat logs: > > NPT ERROR: Cannot open library > Service exit with a return value of 1 > > I am using tomcat-7.0.34 on FreeBSD 9-STABLE amd64. > > Cheers, What java version are you using? Ronald.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.wrbirli48527sy>