Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 18629 invoked from network); 4 Jan 2005 02:44:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Jan 2005 02:44:45 -0000 Received: (qmail 93393 invoked by uid 500); 4 Jan 2005 02:44:32 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 93369 invoked by uid 500); 4 Jan 2005 02:44:32 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 93347 invoked by uid 99); 4 Jan 2005 02:44:31 -0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jak-tomcat-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO main.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 03 Jan 2005 18:44:28 -0800 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1ClegJ-0000ih-00 for ; Tue, 04 Jan 2005 03:44:23 +0100 Received: from adsl-63-201-230-198.dsl.snfc21.pacbell.net ([63.201.230.198]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Jan 2005 03:44:22 +0100 Received: from cmanolache by adsl-63-201-230-198.dsl.snfc21.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Jan 2005 03:44:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: tomcat-dev@jakarta.apache.org From: Costin Manolache Subject: Re: adding features to Status servlet Date: Mon, 03 Jan 2005 18:44:15 -0800 Lines: 116 Message-ID: References: <27e674a9050103113655a33753@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: adsl-63-201-230-198.dsl.snfc21.pacbell.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041201 Thunderbird/1.0RC1 Mnenhy/0.7 X-Accept-Language: en-us, en In-Reply-To: <27e674a9050103113655a33753@mail.gmail.com> Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Or: 1. Wait for Mladen to check in the code 2. figure out how to build it and how to install it easily in tomcat ( and other java applications ). 3. probably add one native method. I don't think "wrapping it as apr component" makes sense ( apr is not a component system like xpcom ). 4. write the java mbean - using the native method and making all conversions between the native signature and java style ( if SWT-style of jni is used - i.e. using byte[], int pointers, etc - and doing java adaptation in java ). I'm as curious as you are to see the code and figure out how it can be used, I love jni :-) Costin Peter Lin wrote: > So which way would be best/better to proceed? Since mladen has his > apr-java stuff, would it make sense to do this? > > 1. write native windows dll > 2. write apr component > 3. use apr-java to wrap apr > 4. wrap apr-java with mbeans > > or > > 1. write apr component to call system level API > 2. use apr-java to wrap apr > 3. wrap apr-java with mbeans > > or > > something completely different? > > peter > > > On Mon, 03 Jan 2005 11:21:55 -0800, Costin Manolache > wrote: > >>Benson Margulies wrote: >> >>>For systems with a /proc file system with these statistics, this doesn't >>>require any JNI ... >> >>Yes, there are a lot of ways to workaround java limitations. /proc is >>one. But even on linux, a lot is not exposed via /proc, but ioctl. >>I guess the goal is not to implement sysinfo, but have a way to get more >>platform-specific information and access platform-specific features. >> >>Costin >> >> >> >>>-----Original Message----- >>>From: Peter Lin [mailto:woolfel@gmail.com] >>>Sent: Monday, January 03, 2005 10:04 AM >>>To: Tomcat Developers List >>>Subject: Re: adding features to Status servlet >>> >>>sysinfo on unix/linux should be pretty easy. I've used windows >>>performance stats before when i tried to write the equivalent of the >>>status servlet for IIS. I will try to write an exe named sysinfo that >>>spits out similar performance stats. >>> >>>how can I help mladen? >>> >>>peter >>> >>> >>> >>>On Mon, 03 Jan 2005 15:55:44 +0100, Mladen Turk >>>wrote: >>> >>> >>>>Peter Lin wrote: >>>> >>>> >>>>>that sounds great. does it have support for sysinfo? if it does, >>>>>I'll try using your apr-java package. >>>>> >>>> >>>>No, but it's up to us to decide what will go inside. >>>>APR is included, but I wish to leave that as open as it could be. >>>>It already have win32.c,unix.c and netware.c files for platform >>>>specific stuff that APR doesn't offer. >>>>Having sysinfo sounds good to me. WIN32 has also good performance data >>> >>> >>>>gathering, and I'm sure that Netware has them too. >>>>I also wish to include the OS specific things from httpd like setting >>>>group, user, sending data to child process, etc... >>>> >>>>What matters is that we'll have a generic native component, with well >>>>defined build and distribution specification. >>>> >>>>Mladen. >>>> >>>>--------------------------------------------------------------------- >>>>To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org >>>>For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org >>>> >>>> >>> >>> >>>--------------------------------------------------------------------- >>>To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org >>>For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org >>For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org