From owner-freebsd-java@FreeBSD.ORG Tue Jan 22 15:03:22 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 40447D1 for ; Tue, 22 Jan 2013 15:03:22 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.78]) by mx1.freebsd.org (Postfix) with ESMTP id 0525BB52 for ; Tue, 22 Jan 2013 15:03:21 +0000 (UTC) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1TxfNZ-0007ja-4L for freebsd-java@freebsd.org; Tue, 22 Jan 2013 16:03:13 +0100 Received: from [81.21.138.17] (helo=ronaldradial.versatec.local) by smtp.greenhost.nl with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1TxfNZ-0001Q8-9g for freebsd-java@freebsd.org; Tue, 22 Jan 2013 16:03:13 +0100 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-java@freebsd.org Subject: Re: Adding remote debugging to tomcat7 References: <50FE368E.2010404@gmail.com> Date: Tue, 22 Jan 2013 16:03:11 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ronald Klop" Message-ID: In-Reply-To: <50FE368E.2010404@gmail.com> User-Agent: Opera Mail/12.12 (Win32) X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: - X-Spam-Score: -1.9 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.1 X-Scan-Signature: dfea3049d3b923820beb462d65569822 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jan 2013 15:03:22 -0000 On Tue, 22 Jan 2013 07:49:50 +0100, David Demelier 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.