tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Running not multithreaded application
Date Fri, 23 Dec 2011 15:00:09 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hernan,

On 12/22/11 9:47 PM, hernan wrote:
> Finally, I'm just using Runtime.exec() to execute a c++ program
> that uses glpk, and using stdin/stdout to communicate them. The
> whole system is running tomcat, axis2, java and c/c++.

Just be very careful about thread and stream management when using
Runtime.exec(): you must consume everything from both stdout *and*
stderr, otherwise you can lock-up the thread and bring down your
server. You might want to have a resource-limiter on the number of
concurrent calls to GLPK processes just to make sure there are always
some threads available for other things like monitoring (including
reporting the number of GLPK processes that are running).

> I don't know about the demand for linear-physics-via-HTTP, it's
> only about a service for inventory and order management.

I think I'm lost. What are you using GLPK for, then?

> Thanks a lot for your comments and suggestions!!!

Good luck!

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk70l3kACgkQ9CaO5/Lv0PAOZgCdGzZs+SjjrbwIv4rTobdtrNJ3
pkEAoKnsO5s/3CfHmmlKUrXlxcLJprDZ
=bD4w
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message