[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


https://bugzilla.novell.com/show_bug.cgi?id=682256

https://bugzilla.novell.com/show_bug.cgi?id=682256#c0


           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;
            ServiceBase.Run(ServicesToRun);
        }
    }

    public class Service1 : ServiceBase
    {
        public Service1()
        {
        }

        protected override void OnStart(string[] args)
        {
            Connsole.WriteLine("start...");
        }



        protected override void OnStop()
        {
            Console.WriteLine("stop....");
        }

        protected override void OnPause()
        {
            Console.WriteLine("Pauce....");
        }

        protected override void OnContinue()
        {
            Console.WriteLine("Continue....");
        }

    }

}

-- 
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