[prev in list] [next in list] [prev in thread] [next in thread] 

List:       swftools-common
Subject:    Re: [Swftools-common] 100% CPU when convert using PDF2SWF
From:       Matt Cline <mattacline () gmail ! com>
Date:       2009-06-20 15:58:52
Message-ID: 65411879-A2A9-481E-A080-1CBB44B12041 () gmail ! com
[Download RAW message or body]

With .net you could use mutithreading and worker process queues.





On Jun 20, 2009, at 7:43 AM, filip sound <filip.sound@gmail.com> wrote:

> Hi Thiago,
>
> everything that needs some time to process naturally takes 100% cpu  
> on a computer unless it is run as a new thread with certain settings  
> concerning cpu usage. it also depends of the cpu architecutre (i.e.  
> how many cores it has). it's easier to handle cpu usage on linux  
> than it is in windows because you can send processes to background  
> or a certain cpu core with the console when you run the program. i  
> have no clue on how to do that in windows without coding a tool for  
> it. i don't know if matthias has implemented anything like a cpu  
> manager - i doubt it.
>
> i'm doing cpu management on a linux server which enqueues all  
> requests and processes 3 at a time (4 cores on the cpu), so one core  
> is free to handle new requests.
>
> hope that helped somehow ...
>   filip
>
>
> On Fri, Jun 19, 2009 at 2:03 PM, Thiago Lima  
> <thiagovargas@gmail.com> wrote:
> On my web application, the users access PDF Files with a login and  
> password. I want to convert this PDF's when the users access my  
> application, but, i did a simulate with 10 users accessing the URL  
> and converting the PDF file with 1,8MB, my CPU Processor got with  
> 100% and appear 10 pdf2swf.exe process in the windows task manager.
>
> Is there a way to reduce the quantity of pdf2swf.exe process  
> independent of how many users are using my application? And why the  
> CPU processor got with 100%? Is it because the pdf size?
>
> Thank you guys.
>
> Thiago
>

[Attachment #3 (text/html)]

<html><body bgcolor="#FFFFFF"><div>With .net you could use mutithreading and worker \
process queues.<br><br><br><div><br></div><div><br></div></div><div><br>On Jun 20, \
2009, at 7:43 AM, filip sound &lt;<a \
href="mailto:filip.sound@gmail.com">filip.sound@gmail.com</a>> \
wrote:<br><br></div><div></div><blockquote type="cite"><div>Hi Thiago,<br> <br>
everything that needs some time to process naturally takes 100% cpu on
a computer unless it is run as a new thread with certain settings
concerning cpu usage. it also depends of the cpu architecutre (i.e. how many cores it \
has). it's easier to handle cpu usage on linux than it is in windows because you can \
send processes to background or a certain cpu core with the console when you run the \
program. i have no clue on how to do that in windows without coding a tool for it. i \
don't know if matthias has implemented anything like a cpu manager - i doubt it.<br>
<br>
i'm doing cpu management on a linux server which enqueues all requests
and processes 3 at a time (4 cores on the cpu), so one core is free to
handle new requests.<br>
<br>
hope that helped somehow ...<br>
&nbsp; filip<br><br><br><div class="gmail_quote">On Fri, Jun 19, 2009 at 2:03 PM, \
Thiago Lima <span dir="ltr">&lt;<a href="mailto:thiagovargas@gmail.com"><a \
href="mailto:thiagovargas@gmail.com">thiagovargas@gmail.com</a></a>></span> \
wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, \
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div>On my web application, the \
users access PDF Files with a login and password. I want to convert this PDF's when \
the users access my application, but, i did a simulate with 10 users accessing the \
URL and converting the PDF file with 1,8MB, my CPU Processor got with 100% and appear \
10 pdf2swf.exe process in the windows task manager.</div>



<div>&nbsp;</div>
<div>Is there a way to reduce the quantity of pdf2swf.exe process independent of how \
many users are using my application? And why the CPU processor got with 100%? Is it \
because the pdf size?</div> <div>&nbsp;</div>
<div>Thank you guys.</div>
<div>&nbsp;</div><font color="#888888">
<div>Thiago</div>
</font></blockquote></div><br>
</div></blockquote></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic