On 08/18/2011 10:35 AM, Chris wrote:
On Thu, 18 Aug 2011 07:15:21 -0700
Chris Ohmstede<[email protected]> wrote:
On 08/18/2011 08:01 AM, Chris wrote:
On Thu, 18 Aug 2011 17:59:50 +0530
Its Me For Testing<[email protected]> wrote:
Hi Guys,
When i convert large PDF file to SWF my CPU utilization is very high and the
server is hanging sometimes. I am using windows 2008 server. I am unable to
use this tool. Kindly help me for this issue.
Thanks,
Karthik
1. Check your your various server logs for clues.
2. Presumably this is being triggered under PHP - memorry/resource allocation?
3. Are you expecting too much? i.e. very large pdf with lots of image and font
data,
and no resources available to cope?
4. AFAICR Windows eats memory and resources for breakfast. You might want to
check out the
Process Expolrer for further clues:
http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx
( 5<evil grin> Windows 2008?? Swap to a Linux server!</evin grin> )
HTH.
Regards,
Chris
pdf2swf is a command line app with no user interface. It's not waiting
for user input, therefore once started it uses 100% of the processor
because that's all it's doing, processing.
Come off it Chris. Microsoft has been attempting multi-tasking graphical o/s
since Windows Version 1, and
multithreading has been around since mid 1950's! Even DOS ( and my old ZX81 )
could cope with doing more
than one thing at a time. ;o)
To slow down it's processor usage, you will need to do this at the operating
system level.
( Chris 2 gets really pedantic ): processor usage does not slow down! If it
did that, we'd be back to
pre one-oh-eight-six performance. There is something called a context
switching - a dialog between the
o/s and the processor, so that resources are (un)equally divided.
Lower the thread priority of the terminal pdf2swf is running in
A bit tricky, if ( as I suspect ), this is being triggered under PHP, instead
of a terminal. 'It's him'
didn't actually say.
(I don't use Windows very often so I can't say exactly how to do this.) If
it's a
single processor server, you might look into hyper-threading.
Hyperthreading is an Intel-proprietary technological term for simultaneoues (
hah! ) multithreading
on it's own processor range. But it's usage is not cross platform.
Chris
I do understand the concept of multi-tasking since I first learned
programming on a Univac and a Cray (showing my age.) I just didn't see
the need to go into the concept of context switching (perhaps I was
wrong.) I was simply trying to show that gui apps tend to spend most
their time processing user input. They spin through their message cue
and if nothing is left to do, they release context. pdf2swf doesn't
work this way, it gets all it's user input when it starts and grinds on
through until it is done (I haven't looked that deeply into the code but
I don't think there are any embedded sleeps to release the context.)
By lowering the thread priority I would only be advising the thread to
switch context more often leaving more processor time for the
applications that have been adversely effected. And last, since the
question was for Windows server 2008 specifically, I'm not sure where
Hyper-threading not being cross platform is an issue.
Chris
---------------
SWFTools-common is a self-managed list. To subscribe/unsubscribe, or amend an
existing subscription, please kindly point your favourite web browser
at:<http://lists.nongnu.org/mailman/listinfo/swftools-common>