*
The moose likes IDEs, Version Control and other tools and the fly likes 100% CPU utilization with JCreator 3.5.013 LE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "100% CPU utilization with JCreator 3.5.013 LE" Watch "100% CPU utilization with JCreator 3.5.013 LE" New topic
Author

100% CPU utilization with JCreator 3.5.013 LE

Ashish Gupta
Ranch Hand

Joined: Apr 27, 2003
Posts: 61
Hi All,
I have been using JCreator 3.5.013 LE for my personal development for a while. Though I am not a power user, I keep doing small projects to keep myself busy. Currently I am working on developing a J2EE application using JCreator 3.5.013 LE. I am facing one problem which is quite bothering.

I have one JSP file (having some 400+ lines of code). Whenever I try to edit this file in JCreator, my CPU utilization goes 100% and my system start almost crawling. I don't find this issue while working with other Java or JSP files.

If you happen to know how to fix this or any workaround, please share with me. Due to this I am forced to edit this particular file in a notepad to get going.

Thanks
Ashish
Ashish Gupta
Ranch Hand

Joined: Apr 27, 2003
Posts: 61
I thought JCreator was a popular editor? Or is it just me facing this issue? Anyway I have send the same query to the JCreator Support folks. If they come back with some solution/suggestion, I will post it here.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30361
    
150

Ashish,
Regardless of the popularity of JCreator, it is good practice to keep code out of the JSP. So my guess is that most people don't have a 400 line JSP to even be in the situtation of having this problem.

Consider refactoring the JSP to have some of the code in Java classes or a servlet. Especially the code not related to presentation. Another option is to use jsp:include to split up the JSP somewhat.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Ashish Gupta
Ranch Hand

Joined: Apr 27, 2003
Posts: 61
Hi Jeanne,
Thanks for the repl and your sugegstion.

Actually I have tried to keep the business logic to minimum in the JSP by using classes and beans, but the file size grew more because I am trying to put all the code pertaining to various sub tabs into one JSP file using if/else condition. I will try using jsp:include directive instead to make it more managable.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30361
    
150

Ashish,
We've done that at our place too - each tab gets its own JSPF (JSP fragment) file.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 100% CPU utilization with JCreator 3.5.013 LE