Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

CPU usage on Linux #10445

Closed
yaroslav-ilin opened this issue Mar 22, 2012 · 3 comments
Closed

CPU usage on Linux #10445

yaroslav-ilin opened this issue Mar 22, 2012 · 3 comments
Labels

Comments

@yaroslav-ilin
Copy link

Which version of PhantomJS are you using? Tip: run 'phantomjs --version'.
1.4.1

What steps will reproduce the problem?

  1. Put attached PHP file on hosting that supports PHP.
  2. Execute attached JS file with PhantomJS.
  3. Look at CPU usage and notice that process wasn't stoped and uses all available resources.

What is the expected output? What do you see instead?
It uses all CPU and does not stop.
It should be stopped.

Which operating system are you using?
Linux ************* 2.6.32-220.2.1.el6.x86_64 #1 SMP Fri Dec 23 02:21:33 CST 2011 x86_64 x86_64 x86_64 GNU/Linux
On Windows all Ok.

Did you use binary PhantomJS or did you compile it from source?
From sources.

Please provide any additional information below.
Notice that PHP file has 5 lines, i.e. there should be any content (one space is enough).
The problem is inside PhantomJS content-type parsing code. With the word "html" written in lowecase there are no problems.

Disclaimer:
This issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, Issue #445.
🌟   2 people had starred this issue at the time of migration.

@ariya
Copy link
Owner

ariya commented Mar 25, 2012

ariya.hi...@gmail.com commented:

Just to make sure I understand the issue. If this line is used instead

header( 'Content-Type: text/html );

PhantomJS stops just fine. Is that correct?

 
Metadata Updates

  • Label(s) added:
    • Component-Logic
    • Domain-Qt
    • Domain-WebKit
  • Milestone updated: FutureRelease (was: ---)

@yaroslav-ilin
Copy link
Author

Right.

@ghost ghost removed old.Component-Logic labels Dec 19, 2017
@ghost ghost removed this from the FutureRelease milestone Jan 10, 2018
@stale stale bot added the stale label Dec 25, 2019
@stale
Copy link

stale bot commented Dec 28, 2019

Due to our very limited maintenance capacity (see #14541 for more details), we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed. In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!

@stale stale bot closed this as completed Dec 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants