[Mono-bugs] [Bug 682256] New: When i run my service using mono-service2 and after i stop the service cpu usage is increased to > 100

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Mar 24 08:03:36 EDT 2011



           Summary: When i run my service using mono-service2 and after i
                    stop the service cpu usage is increased to > 100
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: nangunoori_srinivas at yahoo.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Other
           Blocker: Yes

Description of Problem:
 have a developed a simple windows service. Want to run using mono-service2 in
mac. So i am successfully able to run the service and able to pause and
continue and stop the service. But after stop the service i am observing cpu
usage is increased > 100%.

Steps to reproduce the problem:
1.mono-service2 <myservicename>
2. kill `cat /tmp/<mayservicename>/lock`
3. Open activity monitor observe process name with mono. cpu usage increased
to> 100%

Actual Results:
cpu usage is increased more then 100%

Expected Results:
I think it should not increase

How often does this happen? 
Every time

Additional Information:
And the code is,

namespace MonoServiceTestSrvr
    static class Program
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[] 
                new Service1() 
            ServicesToRun[0].CanPauseAndContinue = true;

    public class Service1 : ServiceBase
        public Service1()

        protected override void OnStart(string[] args)

        protected override void OnStop()

        protected override void OnPause()

        protected override void OnContinue()



Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list