From owner-freebsd-java@FreeBSD.ORG Tue Jan 22 06:58:04 2013 Return-Path: <owner-freebsd-java@FreeBSD.ORG> Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 30B0779F; Tue, 22 Jan 2013 06:58:04 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-we0-x229.google.com (we-in-x0229.1e100.net [IPv6:2a00:1450:400c:c03::229]) by mx1.freebsd.org (Postfix) with ESMTP id 8750788F; Tue, 22 Jan 2013 06:58:03 +0000 (UTC) Received: by mail-we0-f169.google.com with SMTP id t11so1733915wey.14 for <multiple recipients>; Mon, 21 Jan 2013 22:58:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=NB3nutgMqhmv/21eeUSGejr81cjtiSqR8raZofF84uE=; b=ogDQ9mTEv47TQjE8Ros5OLqbo5Ab3EW4fpe94xefrG1pSczVDRiDwFcAcAprAqwOut +LsohNRSkdmq+Cpr2MFFfVRemdzosOGxj+G8cxQjx/NLr27MAg4ewQiTrIbiEAgJMmxg Owou0VAa2OsB+0aOg+l6hU6YJ8CHztSgGywVkSm8O9+QgWLH6g0tYwWXK+OfQ9XuN8MJ bLKr1zR+Y4Cor3OkHbHygcHcqyZvaLp1ses+xMIlej8ByI0JmrMmMcS2E5xyfAWJwXpP 9XQFNLIgibSJJ5zQe+WmHbf26fE0cy//Rb/kCcDHZzLC2YskT7zaXbl81cjk19XicnaZ YKfg== X-Received: by 10.194.171.198 with SMTP id aw6mr30361544wjc.3.1358837412343; Mon, 21 Jan 2013 22:50:12 -0800 (PST) Received: from Melon.malikania.fr (AStrasbourg-651-1-15-57.w81-51.abo.wanadoo.fr. [81.51.150.57]) by mx.google.com with ESMTPS id w5sm20098386wif.11.2013.01.21.22.50.09 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Jan 2013 22:50:11 -0800 (PST) Message-ID: <50FE368E.2010404@gmail.com> Date: Tue, 22 Jan 2013 07:49:50 +0100 From: David Demelier <demelier.david@gmail.com> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130115 Thunderbird/17.0.2 MIME-Version: 1.0 To: freebsd-java@freebsd.org, freebsd-ports@freebsd.org Subject: Adding remote debugging to tomcat7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-java>, <mailto:freebsd-java-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java> List-Post: <mailto:freebsd-java@freebsd.org> List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>, <mailto:freebsd-java-request@freebsd.org?subject=subscribe> X-List-Received-Date: Tue, 22 Jan 2013 06:58:04 -0000 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,