Opened 14 years ago

Closed 14 years ago

#1624 closed defect (fixed)

Maestro 2.0 live dvd fixes

Reported by: jng Owned by: jng
Priority: low Milestone:
Component: Maestro Version:
Severity: trivial Keywords:
Cc: trevorwekel External ID:

Description

2 tickets reported from the OSGeo Live DVD

MapGuide Maestro gets CPU usage to 100%

http://trac.osgeo.org/osgeo/ticket/699

MapGuide Maestro port fix

http://trac.osgeo.org/osgeo/ticket/687

The fix for 687 is an easy one (a patch is attached made against the MAESTRO-2.0 tag)

The fix for 699 requires more investigation (I'm currently downloading the v4.5RC1 vm image). I may not find a sufficient solution before the March 14 build/release date

Attachments (3)

livedvd_687.patch (571 bytes ) - added by jng 14 years ago.
Default site url patch for Maestro on OSGeo Live DVD
livedvd_699.patch (2.1 KB ) - added by jng 14 years ago.
100% cpu fix
livedvd_version.patch (8.3 KB ) - added by jng 14 years ago.
assembly version patch

Download all attachments as: .zip

Change History (6)

by jng, 14 years ago

Attachment: livedvd_687.patch added

Default site url patch for Maestro on OSGeo Live DVD

comment:1 by jng, 14 years ago

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

by jng, 14 years ago

Attachment: livedvd_699.patch added

100% cpu fix

by jng, 14 years ago

Attachment: livedvd_version.patch added

assembly version patch

comment:2 by jng, 14 years ago

The other definite cause of the 100% CPU was due to Maestro attempting to close down the main form as it is loading (which it will do if the user cancels the login dialog).

While this is fine on Microsoft's .net framework, on Mono it obviously has problems with this approach resulting in a zombie mono process on linux. The attached patch prompts for login first, and only when the user logs in will it then start showing the main form.

comment:3 by jng, 14 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.