This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

100% CPU utilization with JCreator 3.5.013 LE

 
Ashish Gupta
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ashish Gupta
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ashish,
We've done that at our place too - each tab gets its own JSPF (JSP fragment) file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic