Return-Path: X-Original-To: apmail-james-server-user-archive@www.apache.org Delivered-To: apmail-james-server-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 25EF9DC36 for ; Tue, 19 Jun 2012 19:16:31 +0000 (UTC) Received: (qmail 77272 invoked by uid 500); 19 Jun 2012 19:10:33 -0000 Delivered-To: apmail-james-server-user-archive@james.apache.org Received: (qmail 60292 invoked by uid 500); 19 Jun 2012 19:09:30 -0000 Mailing-List: contact server-user-help@james.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "James Users List" Reply-To: "James Users List" Delivered-To: mailing list server-user@james.apache.org Received: (qmail 43247 invoked by uid 99); 19 Jun 2012 16:49:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2012 16:49:25 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of timprepscius@gmail.com designates 209.85.216.46 as permitted sender) Received: from [209.85.216.46] (HELO mail-qa0-f46.google.com) (209.85.216.46) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2012 16:49:18 +0000 Received: by qadb17 with SMTP id b17so2240506qad.12 for ; Tue, 19 Jun 2012 09:48:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=zigZUDYCXiB7qYWMSr3GX4zK7ClrUkW9u5ppnb02suI=; b=CQrNTUxtwqdPQ5rnAr19fkK3UemH446ww2yL2F5XsAmTwvyyeEfRkJ4yCimXol7knB CUbxuYDw00FvIySL55ancGlqcfosMjreJXr5VPfulYW8N1Lg4ba6cXSsUIhoejCJpzHg TFEDQqo5/eH8wo0U4pz/XKJHGeXWd980CqVJtcX/8cXTb4RZb+M13MEjzj+N1gjlckN5 YUR8wQxPdyJ4aFTQ+mFtjfYYwaiGcoo9cjqcxZ1lYqClzuW2cM6lsIxRzUzfIKRaALby FQwh8OIMk5em9YTSYor3h9/XgxrziFPi3LmzhKfeYPDvZFRpWaaZPDt7yDx4WqajRRRO MU5g== Received: by 10.224.32.205 with SMTP id e13mr35188747qad.69.1340124537221; Tue, 19 Jun 2012 09:48:57 -0700 (PDT) Received: from [192.168.1.109] (cpe-98-14-81-235.nyc.res.rr.com. [98.14.81.235]) by mx.google.com with ESMTPS id fx5sm33508230qab.14.2012.06.19.09.48.55 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Jun 2012 09:48:56 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1278) Subject: Re: overhead of JmxServerProbe? From: Timothy Prepscius In-Reply-To: <4FE08B60.5070605@apache.org> Date: Tue, 19 Jun 2012 12:48:54 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <3F2FCA8B-F690-49A8-96F9-B2CAB758582C@gmail.com> <4FE08B60.5070605@apache.org> To: "James Users List" X-Mailer: Apple Mail (2.1278) X-Virus-Checked: Checked by ClamAV on apache.org K, I'll post a stack trace tomorrow. (need to wait for the connection = to die) [ optional ] On a lesser note, do you guys do code coverage/static analysis of james? Do you have a favorite tool/plugin that works well with maven and james?=20= (I'm not versed in the various maven java coverage/analysis tools) I'll spend some time looking tonight, but if there is an obvious = choice.. etc etc etc.. [ /optional ] Thanks, -tim On Jun 19, 2012, at 10:23 AM, Eric Charles wrote: > Hi Tim, >=20 > No idea on the overhead, the connect method instanciates a few objects = connecting to the remote server. >=20 > If your workload is not too high, it should be all right, but don't do = it via direct database access (never ever!). >=20 > It would be good that you post the exception stacktrace in a JIRA so = we can think to enhance the client with a JMX Connection pool (or = something like that) or configure the connection with longer timeouts. >=20 > Thx, > Eric >=20 > On 06/19/2012 02:58 PM, Timothy Prepscius wrote: >> I am wondering whether anyone knows the overhead associated with the = JmxServerProbe? >>=20 >> So, currently, I instantiate a JMX interface and keep it around = indefinitely in order to create users. >> However, it eventually times out and fails to reconnect. >> Thereafter, user creation fails. >>=20 >>=20 >> So, if I use JMX, I will need to change the code to instantiate the = JMX interface with each user creation. >>=20 >>=20 >> --- >>=20 >> Is this wise? What sort of overhead am I inducing by creating this = JMX interface? >>=20 >> I'm wondering if I should instead just write directly to the = james.JAMES_USER table. >>=20 >> -- >>=20 >> Thanks, >>=20 >> -tim >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org >> For additional commands, e-mail: server-user-help@james.apache.org >>=20 >=20 > --=20 > eric | http://about.echarles.net | @echarles >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org > For additional commands, e-mail: server-user-help@james.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org For additional commands, e-mail: server-user-help@james.apache.org