Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » JavaScript and CPU(Open script which contains JavaScript code increase CPU)
JavaScript and CPU [message #1726579] Mon, 14 March 2016 19:20 Go to next message
Vektor Seven is currently offline Vektor SevenFriend
Messages: 2
Registered: March 2016
Junior Member
Hi!

I have a very simple PHP script, which contains one PHP function (echo) and one Java Script function (alert) only.

If this script will be opened in Eclipse (Luna, Mars), the CPU runs up to about 180% of 200% on my Macbook and stay there forever.

Even if I close the script within Eclipse, the CPU runs on high level!

If line 18 in this script will be removed (Java Script function alert), there is no problem with the CPU at all, after opening the file in Eclipse.

For me it seems that Eclipse has a problem with Java Script at all!?

What is the reason?

Thanks for any help.

The script code:
<html>    
</html>
<head>    
</head>
<body>
<?php
echo "This is a very simple PHP script, which contains
    one PHP function (echo) and one Java Script function (alert) only.<br>
    If this script will be opened in Eclipse (Luna, Mars), the CPU runs
    up to about 180% of 200% on my Macbook and stay there forever.<br>
    Even if I close the script within Eclipse, the CPU runs on high level!<br>
    If line 18 in this script will be removed (Java Script function alert), there is
    no problem with the CPU at all.
    <p>
    For me it seems that Eclipse has a problem with Java Script at all!?
    ";
?>
<script>alert('Hello World');</script>
</body>
</html>
  • Attachment: example.php
    (Size: 0.65KB, Downloaded 124 times)
Re: JavaScript and CPU [message #1726584 is a reply to message #1726579] Mon, 14 March 2016 20:22 Go to previous messageGo to next message
Mark Dexter is currently offline Mark DexterFriend
Messages: 324
Registered: July 2009
Senior Member
I can't reproduce your problem on my Windows sytem with Mars.2. However, I often experience very slow editing in JS and mixed PHP/JS files. Good luck.
Re: JavaScript and CPU [message #1727684 is a reply to message #1726584] Fri, 25 March 2016 08:15 Go to previous message
Vektor Seven is currently offline Vektor SevenFriend
Messages: 2
Registered: March 2016
Junior Member
Mark, thanks for your feedback.

Is there anybody else using Eclipse on a Mac OS X?
Previous Topic:Debugging - Breakpoints ignored in 3.7.0 (Mars.2)
Next Topic:Configuring xDebug in Eclipse
Goto Forum:
  


Current Time: Fri Apr 19 22:20:38 GMT 2024

Powered by FUDForum. Page generated in 0.02682 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top