From owner-freebsd-java@FreeBSD.ORG Tue Jan 22 15:06:29 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 3D1342B0 for ; Tue, 22 Jan 2013 15:06:29 +0000 (UTC) (envelope-from valentin.po@gmail.com) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) by mx1.freebsd.org (Postfix) with ESMTP id BDEEEBE3 for ; Tue, 22 Jan 2013 15:06:28 +0000 (UTC) Received: by mail-la0-f47.google.com with SMTP id fh20so7610541lab.34 for ; Tue, 22 Jan 2013 07:06:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:subject:mime-version:content-type:from:in-reply-to:date :cc:message-id:references:to:x-mailer; bh=FV4cAJXLS1WhjGfuJYY3jOJ3l4NSH42nTpAtw0/dzW0=; b=bZPGWERCp4hBr+kxYS8katp7RAVYrpneNiaUWYzY+mq2p4laDE0NKK8HVjSsd0Io2n +HOn+gF7JpnUHf0XLn/JB9JV+i15nvK6Dsy5YaKneMlURcn33a2HsJ7t/blJNp9I9d0T U6c908vDrzWgzY74eJdLIqOGd5+KwTt2K+v/iymEhHjHAKx4ifastZiBwYZerQ0EZZ8r XMmHA/XNelGJI2NnhTbiUBgnuIhuNVAnPDkBhnAT0AVZWMTSx0mUowo9nzsNm71ZnnuG P3SKHXjqM3OTer4C52RkrdHVlmBI/f2TzY7Lf7EPetSQPxa870Spb43st2mLT8tw4gt4 mZRQ== X-Received: by 10.112.51.233 with SMTP id n9mr9575567lbo.47.1358867187463; Tue, 22 Jan 2013 07:06:27 -0800 (PST) Received: from [192.168.12.34] (broadband-188-255-108-23.nationalcablenetworks.ru. [188.255.108.23]) by mx.google.com with ESMTPS id td1sm7102190lab.17.2013.01.22.07.06.25 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 22 Jan 2013 07:06:26 -0800 (PST) Subject: Re: Adding remote debugging to tomcat7 Mime-Version: 1.0 (Apple Message framework v1283) From: Valentin Popov In-Reply-To: Date: Tue, 22 Jan 2013 19:06:23 +0400 Message-Id: <33E97205-7286-453C-A316-A7B7D3A2395B@gmail.com> References: <50FE368E.2010404@gmail.com> To: "Ronald Klop" X-Mailer: Apple Mail (2.1283) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-java@freebsd.org 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:06:29 -0000 ln -s /usr/local/openjdk7/jre/lib/amd64/libnpt.so = /usr/local/lib/libnpt.so=20 http://forums.freebsd.org/showthread.php?t=3D32248 > On Tue, 22 Jan 2013 07:49:50 +0100, David Demelier = wrote: >=20 >> Hello there, >>=20 >> Sorry for cross posting, I'm not on the freebsd-java list. >>=20 >> 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 : >>=20 >> -Xdebug -Xrunjdwp:transport=3Ddt_socket,address=3D8000,server=3Dy,suspe= nd=3Dn >>=20 >> So I have added to the rc.conf >>=20 >> tomcat7_enable=3D"YES" >> tomcat7_java_opts=3D"-XX:MaxPermSize=3D512m -Xdebug >> -Xrunjdwp:transport=3Ddt_socket,address=3D8000,server=3Dy,suspend=3Dn" >>=20 >> Note that the first option is only to prevent a PermGen out of space >> error. With that setup, tomcat fails to starts with: >>=20 >> /usr/local/etc/rc.d/tomcat7: WARNING: failed to start tomcat7 >>=20 >> And in the tomcat logs: >>=20 >> NPT ERROR: Cannot open library >> Service exit with a return value of 1 >>=20 >> I am using tomcat-7.0.34 on FreeBSD 9-STABLE amd64. >>=20 >> Cheers, >=20 >=20 > What java version are you using? >=20 > Ronald. > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to = "freebsd-java-unsubscribe@freebsd.org" =D0=A1 =D0=A3=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC, =D0=92=D0=B0=D0=BB=D0=B5=D0=BD=D1=82=D0=B8=D0=BD =D0=9F=D0=BE=D0=BF=D0=BE=D0= =B2