BUG Community

Welcome! Log In

Forums BUG SDK CPU usage 100% when installing 2+ modules on VirtualBug

Subscribe to CPU usage 100% when installing 2+ modules on VirtualBug  10 posts, 3 voices

Log in to reply to this topic
 
Jan 21, 2009 12:05pm
Img_missing_medium Kabada 13 posts

My CPU usage goes up to 100% if I use more than one Module on the Virtual Bug. Just adding the Modules without even running any app on the VirtualBug does that.

It slows down my PC to a level where its almost impossible to work. So what am I doing wrong? Thx.

Windows XP, T2300, 2 GB RAM.

Jan 21, 2009 3:43pm
Medium Bug Labs team bballantine 56 posts

Hey Kabada -

I’d say your problem is that you’re running Windows! Just kidding. Right away, I’m not sure what the problem is, but perhaps we can figure it out.

First, if you have any BUG applications in you project explorer, close them. (Right Click, Close Project). That way when you start the virtual BUG, there’s nothing extra running.

Next, take a look at the console view. Look for anything weird or red. Another place to look is in the Error Log view. Again, look for anything weird.

My hunch is it has something to do with networking and SLP, because this stuff often causes problems. SLP is how the SDK finds BUGs on your network. The V-BUG runs as a networked device on localhost:8082. From the SLP standpoint, it’s sorta spoofing a real device. So, you can begin to see if this stuff is working right before plugging in your modules by going to http://localhost:8082/ in a browser. You should see a little web page. If you get 404, then something’s wrong. You also might get some stuff in the Error Log regarding this connection as the SDK looks for the V-BUG.

If you can’t find or fix the problem, respond to this thread and provide me with some info:

Provide me w/ the version of Dragonfly you’re using (Help > About Eclipse Platform > Click the Dragonfly Icon -> give me the whole string in the version column). Also, does this happen with all module combinations? If not, which modules cause the problem? Next, paste in your entire console output. Lastly, if there are errors or warnings in the error log, provide me with those (there may be a lot, so look for the most recent few, they are timestamped).

Lets start with that and see if we can figure it out.

Thanks,

Jan 26, 2009 10:08am
Img_missing_medium Kabada 13 posts

double post

Jan 26, 2009 10:08am
Img_missing_medium Kabada 13 posts

Thx for the quick reply.

1. It doesn't matter which modules I use. 1 is fine, 2 means 50% CPU, more than 2 means 100% for the javaw.exe process.

2. I started the VirtualBug several times with changing numbers of modules attached, added and removed modules etc. The Eclipse error log doesn't show anything. (it works though, since there are some minor errors from some other projects showing.)

3. I can acces the 127.0.0.1:8082 page just fine

4. Dragonfly version is: 1.1.7.39_P20081202

Here's the Console output for one of the test runs:

---------------------------------------------------------
Concierge OSGi 1.0.0.RC2 on Windows XP 5.1 starting ...
---------------------------------------------------------
Logger initialized, loglevel is INFO
purging storage ...
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/configuration/org.eclipse.osgi/bundles/167/1/.cp/jars/cg_framework.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/configuration/org.eclipse.osgi/bundles/167/1/.cp/jars/osgi.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/ch.ethz.iks.slp.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.event.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.menu.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.module.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.program.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.service.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.tests.common.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.update.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.common.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.nmea.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.osgi.cm.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.osgi.http.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.osgi.obr.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.sun.javax.servlet.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.emulator.awt.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.emulator.base.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.emulator.bmi.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.emulator.module.accelerometer.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.emulator.module.camera.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.emulator.module.gps.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.emulator.module.lcd.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.emulator.module.motion.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.emulator.module.vonhippel.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.slp.jar
INSTALLING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.osgi.shell.jar
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/configuration/org.eclipse.osgi/bundles/167/1/.cp/jars/cg_framework.jar
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/configuration/org.eclipse.osgi/bundles/167/1/.cp/jars/osgi.jar
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/ch.ethz.iks.slp.jar
[Thu Jan 22 11:00:09 CST 2009] [INFO] Debug outputs disabled
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.event.jar
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.menu.jar
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.module.jar
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.program.jar
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.service.jar
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.tests.common.jar
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.update.jar
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.common.jar
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.nmea.jar
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.osgi.cm.jar
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.osgi.http.jar
[Thu Jan 22 11:00:09 CST 2009] [INFO] Registered servlet /event
[Thu Jan 22 11:00:09 CST 2009] [INFO] Registered servlet at /event.
[Thu Jan 22 11:00:09 CST 2009] [INFO] Registered servlet /module
[Thu Jan 22 11:00:09 CST 2009] [INFO] Registered servlet at /module.
[Thu Jan 22 11:00:09 CST 2009] [INFO] Registered servlet /package
[Thu Jan 22 11:00:09 CST 2009] [INFO] Registered servlet at /package.
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.osgi.obr.jar
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.sun.javax.servlet.jar
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.emulator.awt.jar
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.emulator.base.jar
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.emulator.bmi.jar
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.emulator.module.accelerometer.jar
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.emulator.module.camera.jar
[Thu Jan 22 11:00:09 CST 2009] [INFO] Added modlet factory com.buglabs.bug.emulator.module.camera (CAMERA) to map.
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.emulator.module.gps.jar
[Thu Jan 22 11:00:09 CST 2009] [INFO] Added modlet factory com.buglabs.bug.emulator.module.gps (GPS) to map.
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.emulator.module.lcd.jar
[Thu Jan 22 11:00:09 CST 2009] [INFO] Added modlet factory com.buglabs.bug.emulator.module.lcd (LCD) to map.
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.emulator.module.motion.jar
[Thu Jan 22 11:00:09 CST 2009] [INFO] Added modlet factory com.buglabs.bug.emulator.module.motion (MOTION) to map.
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.emulator.module.vonhippel.jar
[Thu Jan 22 11:00:09 CST 2009] [INFO] Added modlet factory com.buglabs.bug.emulator.module.vonhippel (VONHIPPEL) to map.
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.bug.slp.jar
STARTING file:/C:/Documents%20and%20Settings/vwanner/Desktop/dragonfly/eclipse/plugins/com.buglabs.dragonfly.bug.kernel_1.0.0.39_P20081202/kernel/com.buglabs.osgi.shell.jar

(: ---------------------------------------------------------
Framework started in 19.313 seconds.
---------------------------------------------------------
[Thu Jan 22 11:00:10 CST 2009] [INFO] Created modlet from factory com.buglabs.bug.emulator.module.gps...
[Thu Jan 22 11:00:10 CST 2009] [INFO] Received new INSERT model change event for module GPS
[Thu Jan 22 11:00:10 CST 2009] [INFO] UserAppManager init: false
[Thu Jan 22 11:00:10 CST 2009] [INFO] Registered servlet /program
[Thu Jan 22 11:00:10 CST 2009] [INFO] Registered servlet /configuration
[Thu Jan 22 11:00:10 CST 2009] [INFO] Registered servlet /service
[Thu Jan 22 11:00:10 CST 2009] [INFO] Registered servlet at /service.
[Thu Jan 22 11:00:10 CST 2009] [INFO] Registered resources /
[Thu Jan 22 11:00:50 CST 2009] [INFO] Created modlet from factory com.buglabs.bug.emulator.module.lcd...
[Thu Jan 22 11:00:50 CST 2009] [INFO] Received new INSERT model change event for module LCD
Jan 26, 2009 2:09pm
Medium Bug Labs team bcruskie 45 posts

Kabada,

My testing shows it’s the LCD module causing it. Could you please try adding modules other than the LCD and report your cpu usage?

There has been a defect opened on it for a while.

http://bugcommunity.com/bugzilla/show_bug.cgi?i…

Jan 26, 2009 3:22pm
Img_missing_medium Kabada 13 posts

If I don’t use the LCD module it goes up to 50-100% regardless, although it seems as though the computer isnt quite as slowed down as with the LCD module.

So what you’re sazing is that I basically have to wait for yoy to fix the LCd issue before I can use that?
I’m currentlz more or less circumventing the problem by setting the affinity of the process to just one of the CPUs, but that’s not really a workable solution… I need the LCD module.

Jan 27, 2009 1:19pm
Medium Bug Labs team bballantine 56 posts

Kabada – This morning I set up a vista box to have a look and I can reproduce this, for the most part. This afternoon I plan to dig deeper and see if I can figure out what’s happening.

Thanks.

Jan 27, 2009 5:33pm
Medium Bug Labs team bballantine 56 posts

Kabada -

Thanks to some help from kgilmer, we found the issue and fixed it in our main development line. The problem has to do with the accelerometer code. The motion detector module and the lcd both have accelerometers, so you probably got the CPU spike when you plugged in either of those two modules.

Unfortunately, it will be a couple of weeks before we have another production release of the SDK ready. However, in a couple of days I plan to make a new testing build which will be publicly available. The testing build may be overall less stable than your current production build, but it will have this fix in it. When that’s ready I’ll post here with the caveat that we can’t officially support it until it’s gone through our QA cycle and been released as a production release.

Hope that makes sense. Let me know if you have other questions and thanks for your help in finding this defect.

Jan 29, 2009 4:04pm
Img_missing_medium Kabada 13 posts

Well, it’s nice to see you taking my problems seriously.
Looking forward to that RC build.

Feb 2, 2009 5:34pm
Medium Bug Labs team bballantine 56 posts

Kabada,

I’ve made available a new testing version of the sdk that has the issue you describe above fixed. You can find it at http://buglabs.net/sdk—it’s the Latest Update Site link next to the Dragonfly Testing Builds heading.

We only make our integration and testing releases for the SDK public in the form of an update site. I suggest keeping your existing version of dragonfly around since this is a testing release and is less stable than your current dragonfly release.

If you’re not sure how to deal with the update site, get eclipse 3.3 from here—http://www.eclipse.org/downloads/packages/relea… and then follow the instructions here: http://bugcommunity.com/wiki/index.php/Install_….2C_the_BUG_SDK

Under those instructions, item B.5 – instead of using http://www.buglabs.net/sdk/production/current/u… for the update site, use latest testing update site link from the sdk page above, which is: http://buglabs.net/sdk/testing/current/updatesite/

LMK if you have problems/questions, etc

Thanks.

Log in to reply to this topic
Forums BUG SDK CPU usage 100% when installing 2+ modules on VirtualBug