Opened 8 years ago

Closed 8 years ago

Last modified 6 years ago

#699 closed defect (fixed)

MapGuide Maestro gets CPU usage to 100%

Reported by: kalxas Owned by: jng
Priority: major Milestone:
Component: OSGeoLive Keywords: 4.5 RC1
Cc: live-demo@…

Description

MapGuide? Maestro gets CPU usage to 100% even after closing the application.

Change history (8)

comment:1 Changed 8 years ago by jng

Owner: changed from live-demo@… to jng

comment:2 Changed 8 years ago by jng

I've made an umbrella ticket under the mapguide trac:

http://trac.osgeo.org/mapguide/ticket/1624

If you have any additional info, please add here or under the umbrella ticket

comment:3 Changed 8 years ago by jng

Cross post from the umbrella ticket:

The CPU usage is most likely due to the limited thread pool size in Mono's implementation

See: http://www.mono-project.com/ThreadPool_DeadLocks

I fired up a shell on the Live DVD and ran:

export MONO_THREADS_PER_CPU=2000

and then

mono Maestro.exe

Upon exiting, the 100% CPU usage was no longer observable and top does not show zombie mono processes eating up the CPU.

So the solution would be to modify the shortcut to export MONO_THREADS_PER_CPU=2000

comment:4 Changed 8 years ago by kalxas

I tried this solution and works in general. But then, when I pressed Cancel on the login screen, it happens again.

comment:5 Changed 8 years ago by jng

Ok, I think I figured it out. Mono doesn't like the fact that I am closing the main form as it is loading.

I've uploaded an updated deb package with the attached fixes applied:

http://trac.osgeo.org/mapguide/ticket/1624

here:

http://download.osgeo.org/mapguide/releases/2.2.0/Beta/mapguideopensource-maestro_2.0.0-4650_i386.deb

From what I gather this is where the LiveDVD build scripts will download from this location when building the VM. Is this the case?

comment:6 Changed 8 years ago by jng

Ok I got confirmation that this is indeed the download location the LiveDVD build scripts will fetch from.

This deb should resolve this issue and the one in #687. The MONO_THREADS_PER_CPU fix may or may not be required.

comment:7 Changed 8 years ago by kalxas

Resolution: fixed
Status: newclosed

I reinstalled Maestro and the problem in fixed. Thank you jng for this fix.

comment:8 Changed 6 years ago by hamish

Cc: live-demo@… added

please move the ML email addr from the owner field if you take ownership of a ticket

Note: See TracTickets for help on using tickets.