Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-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 4FAEC10129 for ; Wed, 12 Jun 2013 20:16:06 +0000 (UTC) Received: (qmail 7226 invoked by uid 500); 12 Jun 2013 20:16:05 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 7145 invoked by uid 500); 12 Jun 2013 20:16:05 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 7137 invoked by uid 99); 12 Jun 2013 20:16:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jun 2013 20:16:05 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of meminpaca@gmail.com designates 209.85.214.178 as permitted sender) Received: from [209.85.214.178] (HELO mail-ob0-f178.google.com) (209.85.214.178) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jun 2013 20:15:59 +0000 Received: by mail-ob0-f178.google.com with SMTP id fb19so13943596obc.9 for ; Wed, 12 Jun 2013 13:15:38 -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=zQVbKb+94Ta7l310V0/akEzbrJ4RoAPqJVCPxdPuEGU=; b=TmhFMOTan8ZemVI46pQL4+W+9Bq6zITXaxZCmmZcXi7OmPAwfrbmDEvKnd1qBLWH7w kn+OkJzGTc/OBGUGoDgn40ElEr0I/XOvQDipHwjEmFHZgkx6lFieiWr9hDNnrkPRJWVR bjr8Xn0/UjDaYbH7qT+Jh5xWNrL5yHzEARZ53mOLxq7aPzgktarLGaAcXHF528GWt/E/ 91ir2pXAen7eIXpVwlGkApVAySgJnf589qa3TzbJ/904ANTVCQT/uQ9j4+I5HWlKKiW4 wsFt4fA7wd0DUO0bOfxKIAkvhaEABC4NUmPZqZFgMgkm3pikYBPsc31GF354WbjHL1Dk k5yQ== MIME-Version: 1.0 X-Received: by 10.182.125.38 with SMTP id mn6mr16287533obb.52.1371068138201; Wed, 12 Jun 2013 13:15:38 -0700 (PDT) Received: by 10.60.94.230 with HTTP; Wed, 12 Jun 2013 13:15:38 -0700 (PDT) In-Reply-To: <51B82A97.7090209@gmx.at> References: <51B82A97.7090209@gmx.at> Date: Wed, 12 Jun 2013 23:15:38 +0300 Message-ID: Subject: Re: [EXEC] Performance problem From: =?ISO-8859-1?Q?Mehmet_Emin_PA=C7A?= To: Siegfried Goeschl , Commons Users List Content-Type: multipart/alternative; boundary=089e012952ec57281904defaad65 X-Virus-Checked: Checked by ClamAV on apache.org --089e012952ec57281904defaad65 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I removed many stdout messages from my applications. And yes it did make changes on performance. Actually the output of application called by exec is not important for me. Can we separate message outputs from each other ? And also removing stdout messages is the solution of problem ? On 12 June 2013 11:00, Siegfried Goeschl wrote: > Hi Mehmet, > > in order to wire an external application to a Java the JVM needs to pump > the input/output/error streams of the application. Failing to do so cause= s > the external application to block while writing on stdout/stderr. If you = a > producing a lot of output this potentially could cause a slowdown. > > Could you give a try with minimal output to see if this makes a change? > > Cheers, > > Siegfried Goeschl > > On 12.06.13 00:21, Mehmet Emin PA=C7A wrote: > >> /- what is slowly versus faster in terms of your application?/ >> >> >> I mean using slowly; my application is a graphical simulation >> application and running at 60 fps but when I called this application >> from my java code it is running about 40 fps. >> >> /- does your application create a lot of output on stdout?/ >> >> Yes, my java application and called application(Application.exe) are >> creating too much stdout. >> I think you pointed out right location. There are too much stdout >> producing. >> >> Sincerely, >> Emin >> >> >> On 12 June 2013 00:51, Siegfried Goeschl > > wrote: >> >> Hi Mehmet, >> >> a few questions >> >> * what is slowly versus faster in terms of your application? >> * does your application create a lot of output on stdout? >> >> Thanks in advance >> >> Siegfried Goeschl >> >> >> On 11.06.13 20:54, Mehmet Emin PA=C7A wrote: >> >> Hi, I am running an exe file using commons-exec 1.1 version.But >> there are >> performance problems occuring. >> I mean when I compared running performances using cmd.exe vs >> running from >> a java application(using commons-exec), the application which >> called in >> common-exec is working slowly. But the other application run >> from cmd.exe >> is working faster. >> >> What can be problem ? >> >> Running exe file from my simple java application code is below: >> >> *CommandLine cmdlLine =3D >> CommandLine.parse("__**Application.exe"); >> >> watchDog =3D new >> ExecuteWatchdog(__**ExecuteWatchdog.INFINITE___**TIMEOUT); >> >> DefaultExecuteResultHandler resultHandler =3D new >> DefaultExecuteResultHandler(); >> Executor executor =3D new DefaultExecutor(); >> executor.setExitValue(0); >> executor.setWatchdog(watchDog)**__; >> executor.execute(cmdlLine,__**resultHandler);* >> >> >> >> Running from cmd.exe: >> >> * C:\Users\test.user > Application.exe * >> >> Thanks, >> >> >> ------------------------------**__----------------------------** >> --__--------- >> To unsubscribe, e-mail: user-unsubscribe@commons.__apa**che.org >> >> > >> >> For additional commands, e-mail: user-help@commons.apache.org >> >> > >> >> >> > --089e012952ec57281904defaad65--