Sigma Php Ajax framework, Ajax Components, GUI Builder
May 17, 2012, 12:01:35 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1] 2
  Print  
Author Topic: CPU consumption issue in IE6 and IE7  (Read 4355 times)
shumisha
Jr. Member
**
Posts: 17


View Profile
« on: March 22, 2009, 09:21:16 AM »

Hi

I am using sigmagrid to build a data entry application. The grid has a fixed number of lines, there is automatic sub-totals being done for some lines.
Everything works fine, except for one thing : on IE6 and IE7, when the page is displayed, cpu consumption gets above 50%. The page is still usable, but it is very unpractical.
I have no such problem on FF 3 for instance. The users cannot be made to change to FF.
I do not have much debugging tools on IE, so I have no idea what is causing the problem.
Can you give me any idea of where I should look, anything I can check ?

Thanks and best regards

PS: version of sigmagrid is latest as of today
Logged
humi
Hero Member
*****
Posts: 284


View Profile
« Reply #1 on: March 23, 2009, 05:41:22 AM »

This is very most likely an IE issue, and nothing to do with SigmaGrid. IE is very integrated with the Windows OS. And because of this it uses frameworks built-in to windows to process some of its information. So IE is not very efficient when it comes to loading things like this.

Try some sort of performance test in FF and them loos at the same issues in IE. But i am willing to bet that it is simply and IE issue. Is the 50% CPU load for a split second? Or the entire time the Grid is rendering?
Logged
shumisha
Jr. Member
**
Posts: 17


View Profile
« Reply #2 on: March 23, 2009, 06:14:21 AM »

Hi
Thanks for your answer. I don't really think it is an IE issue, though it is obiousvly related to IE. First, it happens both on IE6 and IE7. Then it is not 50%+ cpu when loading or rendering. It is 50%+ ALWAYS. The grid is fully rendered, accepts inputs, etc. But if you just wait and look at it for one minute, doing nothing, it will still have 50%+ cpu. This have been tested on several machines as well.
Is there any routine that gets executed at interval for instance ?

Thanks and regards
Logged
steven
Moderator
Hero Member
*****
Posts: 544



View Profile
« Reply #3 on: March 23, 2009, 06:23:34 AM »

How many grids are in one page?
How many records are in per grid?
How many columns are in per grid?
Logged

Sigma AJAX Data Grid - Easy to Integrate with PHP, ASP Classic, ASP.NET & Java
Sigma PHP Ajax Framework - WYSIWYG GUI Builder With Tree, Grid, Treegrid, Dialog, Tab & More Component
humi
Hero Member
*****
Posts: 284


View Profile
« Reply #4 on: March 23, 2009, 06:26:03 AM »

Observing this behavior now. In FF it has a "Waiting for %host%" in the status bar, and every 10 seconds or so my CPU usage jumps to 10% from a 2% idle.

I don't think there is any function that is a interval call. Perhaps there is an un-finished loop somewhere causing this?
Logged
shumisha
Jr. Member
**
Posts: 17


View Profile
« Reply #5 on: March 23, 2009, 07:15:45 AM »

Yes, I have seen the "waiting for host" in FF occasionnally. In IE,

@steve : it is a simple input grid. Just one on the page, 31 columns, between 10 and 40 lines. User can only input data, not add records or anything, everything is disabled in the toolbar of sigmagrid.
One thing that may be special : I don't use the load url. There is a php backend, that reads data from the db, then builds the javascript required to initialize the grid.
I have also Mootools loaded on that page (version 1.11).
In the grid itself, I have custom renderer like : I also implemented some event handler :
grid.onBeforeEdit, grid.onAfterEdit
and also I have a onBeforeUnload event handler
But I still have the problem if I remove those event handlers.

I'd like to stress out again that this cpu load is not only when the grid loads and renders. It stays at 30, 40, 50% and more even if you let the grid alone for 10 minutes after loading the page...

Do you know of a profiler maybe that could help pinpoint where the problem is ? I know on IE it's not easy... I have the free version of debugbar, but that did not give me any information
Thanks gain for any help, I don't know where to look.
Logged
asherw
Full Member
***
Posts: 27


View Profile
« Reply #6 on: March 23, 2009, 12:31:53 PM »

What cosuming most of your CPU time in Task Manager?
Logged
humi
Hero Member
*****
Posts: 284


View Profile
« Reply #7 on: March 23, 2009, 01:52:45 PM »

This is an issue when you use the loadURL property. When it is removed, Grid is loaded completely. I would start searching there.
« Last Edit: March 23, 2009, 02:09:32 PM by humi » Logged
shumisha
Jr. Member
**
Posts: 17


View Profile
« Reply #8 on: March 23, 2009, 02:12:14 PM »

HI,
Thanks for your answers.

1 - It is Iexplore.exe that uses up the 30 to 50% cpu  in task manager
2 - I checked again, and I confirm I do NOT USE loadData in  my code or anywhere else I could find. Here is a cut/paste of my init code :


DO you mean I should set loadData to true or false  for instance ?

Rgds
Logged
shumisha
Jr. Member
**
Posts: 17


View Profile
« Reply #9 on: March 23, 2009, 02:14:59 PM »

Hi

SOrry, you said loadURL, not loadData.

As I stated in my first post, I do NOT USE loadURL at all, I don't event set it.
SHould I initialize it to soemthing ?
Logged
humi
Hero Member
*****
Posts: 284


View Profile
« Reply #10 on: March 23, 2009, 02:20:42 PM »

Well, first try removing all methods of loading data and in FF see if the "waiting for %host" message is gone.

Next, I think it is a bug in SigmaGrid.
Logged
shumisha
Jr. Member
**
Posts: 17


View Profile
« Reply #11 on: March 23, 2009, 02:23:45 PM »

I tried adding loadURL: null in the grid options, but that had no effect. Still 35% cpu usage on that machine, for ever...

I have absolutely no problem in FF. The message waiting for %host, I remember seeing it 2 weeks ago, when I was doing the main part of the development. But since I got all the php and js correct, I never had problems with FF (using FF 3)

Cheers
Logged
humi
Hero Member
*****
Posts: 284


View Profile
« Reply #12 on: March 27, 2009, 06:04:09 AM »

I profiled the script and found that vS4() is being called continuously after the grid has had a mouseover event. I'm trying to locate the reason right now. Any help?
Logged
shumisha
Jr. Member
**
Posts: 17


View Profile
« Reply #13 on: March 27, 2009, 06:22:20 AM »

Hi Humi,

Thanks for doing this. I can't work on it right now. I'll try use that information and see what I can dig myself, but that'll be on sunday...

Cheers

Logged
shumisha
Jr. Member
**
Posts: 17


View Profile
« Reply #14 on: March 27, 2009, 06:31:09 AM »

Just googling : http://dojotoolkit.org/forum/dojo-core-dojo-0-9/dojo-core-support/onmousemove-event-ie-fires-way-too-often
Same problem, but not solution
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!