开发者

ezpdf php using 100% cpu usage

I have a question. I am using class.ezpdf.php to create a PDF that I am pulling up on my browser. This PDF is made up of events, which are items that are detected by snort. I am listing certain criteria for each event. When the开发者_如何学编程 amount of the events gets into the thousands, the PDF ends up not being created.

It will sit there for a minute or 2, then will instead of opening the PDF, it will ask if I want to open or save the php file I am using to create the PDF, but the file is empty. The PDF is never created. In the meantime, I have run the top command on my box and I can see while this is trying to process, the process php.fcgi is using 100% cpu.

Even after the save/open box comes up for grabbing the php file and I close this box, it continues to show 100% is being used for several minutes. It seems that I have to close my browser that was running that script for it to release this process. I am at a loss on what to do. There used to be a perl script that did the same thing in regards to taking the events and putting them into a PDF, however this issue did not exist, even for a PDF that would contain this number of events.

Any help would be appreciated.

Thanks in advance.


It will sit there for a minute or 2, then will instead of opening the PDF, it will ask if I want to open or save the php file I am using to create the PDF, but the file is empty. The PDF is never created. In the meantime, I have run the top command on my box and I can see while this is trying to process, the process php.fcgi is using 100% cpu.

It sounds like the web server you are using is timing out while waiting for the FastCGI process to give it a response. It's probably giving you whatever data might be present -- the headers causing a download, in this case -- then just closing the connection.

You will need to consult your web server documentation to find the FastCGI timeout and increase it as needed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜