[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help please - gnuplot runaway processes



Your mailer is padding spaces to your lines for the full width of the
screen.  Find out how to stop this, and do so.

On Thu, Oct 19, 2000 at 07:11:55PM +1100, Cyrus Patel (cyrusp@cia.com.au) wrote:
> Hello,
>
> I'm using gnuplot to create webplots on the fly. I call gnuplot
> from a perl cgi file using the command:
>
> gnuplot $gpfile | ppmtogif 2> /dev/null > $imagedir/$giffile
>
> However, every now and again (about 1 in 5 times), the
> gnuplot process does not terminate and starts using huge amounts of
> cpu.
>
> Here is an example from top:
>
> 13513 www       20   1  1016 1016   728 R N     0 45.9  0.1   1:20 gnuplot
> 13589 www       18   1  1016 1016   728 R N     0 44.3  0.1   0:03 gnuplot
> 13568 www       17   1  1016 1016   728 R N     0 44.1  0.1   0:08 gnuplot
> 13402 www       14   1  1016 1016   728 R N     0 42.7  0.1   3:19 gnuplot
>
> There have been times when the gnuplot process had been running for
> hours before I killed it.

How about forcing a cpu ulimit on the process of, say, a minute or two,
or whatever is appropriate for the job?

--
Karsten M. Self <kmself@ix.netcom.com>     http://www.netcom.com/~kmself
 Evangelist, Opensales, Inc.                    http://www.opensales.org
  What part of "Gestalt" don't you understand?      There is no K5 cabal
   http://gestalt-system.sourceforge.net/        http://www.kuro5hin.org
GPG fingerprint: F932 8B25 5FDD 2528 D595 DC61 3847 889F 55F2 B9B0

Attachment: pgpyQwEo9VQ_e.pgp
Description: PGP signature


Reply to: