Return-Path: X-Original-To: apmail-jmeter-user-archive@www.apache.org Delivered-To: apmail-jmeter-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 C9E571830A for ; Thu, 18 Jun 2015 12:22:40 +0000 (UTC) Received: (qmail 55905 invoked by uid 500); 18 Jun 2015 12:22:40 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 55863 invoked by uid 500); 18 Jun 2015 12:22:40 -0000 Mailing-List: contact user-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JMeter Users List" Delivered-To: mailing list user@jmeter.apache.org Received: (qmail 55852 invoked by uid 99); 18 Jun 2015 12:22:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2015 12:22:40 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 209.85.160.180 as permitted sender) Received: from [209.85.160.180] (HELO mail-yk0-f180.google.com) (209.85.160.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2015 12:20:25 +0000 Received: by ykfr66 with SMTP id r66so64356333ykf.0 for ; Thu, 18 Jun 2015 05:21:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=KkQV+4IYolVwu6QrVy+fSOjTgndJ7euiNdsbhnDgvb8=; b=cdHfObGKD+x+BOL56SnGx54/c2sZwuceF7HdXNsZlPlbiICyq40sVmwalrhZ3Xn1Fd C+69XlJB7Hn2I64n92IaLCH6C5ozmDMkbMfpEu2RfJvmMUxlFz8I7EJ92gYJlY1J+QRc t/TvKmh05nxhw+2t+x9VRTpBlKsYBooMKC3+qXBKzhkCtwdcLE6rxQjE/JGBJWe5Tdn5 EPKjQEer0H726AlC3Ob0NbQ6vYU8lBqYL2Am/U3xSWst9B/tK8uBPDgOfLjthCoed8Dl A1KUzxjBOARtBSVnYJ7JxotgN2ZostgQH04kXp5hXMsa2uJTV002K+1rBl3QWtQ8u4k1 +psw== MIME-Version: 1.0 X-Received: by 10.52.94.75 with SMTP id da11mr8408824vdb.54.1434630087873; Thu, 18 Jun 2015 05:21:27 -0700 (PDT) Received: by 10.52.229.39 with HTTP; Thu, 18 Jun 2015 05:21:27 -0700 (PDT) In-Reply-To: References: Date: Thu, 18 Jun 2015 13:21:27 +0100 Message-ID: Subject: Re: Is it possible to remotely check a JMeter slave machine? From: sebb To: JMeter Users List Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org On 18 June 2015 at 10:07, Benjamin BALET wrote: > Hi, > > We are setting up a load testing platform and developping some tools in go. > > We'd like to remotely check a JMeter load generator and (if possible) get > some statistics or infos from a JMeter daemon. This will be from a utility > developed in go (the language isn't the concern here) so outside from > JMeter GUI. The idea is to display the status of the slaves machine (daemon > up or down, latest errors, etc.). > > At first, I thought to try to open a network connection to the JMeter > process, but I don't know if it would interfere with a load test in > progress or if there is an API that would expose more information (errors, > load genrator currently in use, etc.). You cannot piggypback on the JMeter client-server connection which uses RMI. > I've asked this question on SO and a user gave me this link : > http://jmeter.apache.org/usermanual/best-practices.html#beanshell_server > > Does it mean that the JMeter daemon is a BS server ? If so, can you give me > some examples that will help me to reach my goal? You can start a beanshell server as per the referenced documentation. However that has absolutely no security, so is not advisable. JMeter does not offer an API for obtaining information about its state. However you can of course use OS facilities for checking the content of log files and whether the process is still running, etc. There is also JMX (Jconsole) but JMeter does not currently register any MBeans. > Thank you for any help or pointers. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org For additional commands, e-mail: user-help@jmeter.apache.org