commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Siegfried Goeschl <sgoes...@gmx.at>
Subject Re: [EXEC] Performance problem
Date Tue, 11 Jun 2013 21:51:03 GMT
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ÇA 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 = CommandLine.parse("Application.exe");
>              watchDog = new
> ExecuteWatchdog(ExecuteWatchdog.INFINITE_TIMEOUT);
>              DefaultExecuteResultHandler resultHandler = new
> DefaultExecuteResultHandler();
>              Executor executor = 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.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message