Windows Service hanging issue!

Hi,
Oracle server: 8.1.7.4.1
Client: 8.1.7.0.0
We have a windows service application built using Microsoft .NET 1.1 (SP1) which performs a lot of database related transactions.
This service is implemented as a multi-threaded application and uses DAC from System.Data.OracleClient (1.1.4322.2038) for interacting with the database.
Of late, the service is facing issues related to increased contention and deadlocks on a Windows 2000 Server.
While analyzing the dumps created using AD+ we ran into two very interesting issues in the ORACLE client layer:
1. ORACLE critical section leaking due to an OCI error.
2. Excessive CPU consumption - service is seen as consuming > 90% CPU consistently for a long time and remains unresponsive. Two threads can be seen spending almost 100% time switching the context.
These are sample stacks of hanging threads observed under WinDbg. Both the managed as well as the unmanged stacks are shown below:
Sample1:
0671dbf4 77f92387 NTDLL!NtWaitForSingleObject+0xb
0671dc68 77f922f8 NTDLL!RtlpWaitForCriticalSection+0x9e
0671dc70 6064f221 NTDLL!RtlEnterCriticalSection+0x46
0671dc80 6081d1cb oracore8!sltsmna+0x11
0671dc98 60220642 ORANLS8!lxlsaved+0x5b
0671ddf4 602202c1 oracommon8!kzsrcon+0xb2
0671deb0 6043e1ca oracommon8!kzsrgsk+0x41
0671ead8 6043bd55 OraClient8!kpuauth+0x2a0a
0671eb28 6043b7e4 OraClient8!kpuauth+0x595
0671eb54 6040138c OraClient8!kpuauth+0x24
0671eb70 10005a0b OraClient8!OCISessionBegin+0x1c
0671eb8c 0084b0ee oci!OCISessionBegin+0x2b
0x0671ebc0 0x77f94091 [FRAME: NDirectMethodFrameStandalone] [DEFAULT] I4 System.Data.OracleClient.UnsafeNativeMethods.OCISessionBegin(ValueClass System.Runtime.InteropServices.HandleRef,ValueClass System.Runtime.InteropServices.HandleRef,ValueClass System.Runtime.InteropServices.HandleRef,ValueClass CRED,ValueClass MODE)
0x0671ebd0 0x02bf9815 [DEFAULT] I4 System.Data.OracleClient.TracedNativeMethods.OCISessionBegin(Class System.Data.OracleClient.OciHandle,Class System.Data.OracleClient.OciHandle,Class System.Data.OracleClient.OciHandle,ValueClass CRED,ValueClass MODE)
0x0671ec1c 0x02bf8d0d [DEFAULT] [hasThis] Boolean System.Data.OracleClient.OracleInternalConnection.OpenOnLocalTransaction(String,String,String,Boolean,Boolean,Boolean)
0x0671ec48 0x02bf880f [DEFAULT] [hasThis] Boolean System.Data.OracleClient.OracleInternalConnection.Open(Object)
0x0671ec6c 0x02bf8772 [DEFAULT] [hasThis] Void System.Data.OracleClient.OracleInternalConnection..ctor(Class System.Data.OracleClient.OracleConnectionString,Object)
0x0671ec80 0x02bf8579 [DEFAULT] [hasThis] Void System.Data.OracleClient.OracleConnection.OpenInternal(Class System.Data.OracleClient.OracleConnectionString,Object)
0x0671ecb4 0x02bf84b9 [DEFAULT] [hasThis] Void System.Data.OracleClient.OracleConnection.Open()
Sample2:
0641e9d4 77f92387 00000770 00000000 00000000 NTDLL!NtWaitForSingleObject+0xb
0641ea48 77f922f8 00316b00 6064f221 00316b20 NTDLL!RtlpWaitForCriticalSection+0x9e
0641ea50 6064f221 00316b20 00000000 0641ea78 NTDLL!RtlEnterCriticalSection+0x46
0641ea60 6080b71d 00315f08 60849da0 03af86dc oracore8!sltsmna+0x11
0641ea78 604bc97c 03ad148c 03af8474 03af85c4 ORANLS8!lxhclrsave+0x5d
0641ea8c 604828d1 03af86dc 0641ebc0 6042af86 OraClient8!xaolog+0x287fc
0641ea98 6042af86 03af86dc 0641f4d8 0641ec20 OraClient8!upilof+0x21
0641ebc0 604013b8 03af8668 03af885c 03af8474 OraClient8!kputac+0x3a6
0641ebd8 10005a37 03af85c4 03af885c 03af8474 OraClient8!OCISessionEnd+0x18
0x0641ec20 0x77f94091 [FRAME: NDirectMethodFrameStandalone] [DEFAULT] I4 System.Data.OracleClient.UnsafeNativeMethods.OCISessionEnd(ValueClass System.Runtime.InteropServices.HandleRef,ValueClass System.Runtime.InteropServices.HandleRef,ValueClass System.Runtime.InteropServices.HandleRef,ValueClass MODE)
0x0641ec30 0x06c8c7ba [DEFAULT] I4 System.Data.OracleClient.TracedNativeMethods.OCISessionEnd(Class System.Data.OracleClient.OciHandle,Class System.Data.OracleClient.OciHandle,Class System.Data.OracleClient.OciHandle,ValueClass MODE)
0x0641ec78 0x06c8c375 [DEFAULT] [hasThis] Void System.Data.OracleClient.OracleInternalConnection.Close()
0x0641ecac 0x06c8c1b8 [DEFAULT] [hasThis] Void System.Data.OracleClient.OracleConnection.Cleanup(Boolean,Boolean)
0x0641ece0 0x06c8c145 [DEFAULT] [hasThis] Void System.Data.OracleClient.OracleConnection.Close()
Has anyone faced this kind of issue and resolved the same? If yes, how?
Message was edited by:
satishkandi

The memory leak is solved in later versions Oracle10G

Similar Messages

  • Audio service hangs on Windows Server 2008R2 with Remote Desktop Services

    Hello! 
    I have some terminal servers on Windows Server 2008R2. Users have the ability to use web browsers (IE, Firefox) with the included Flash Player, IM clients / Internet
    telephony (Skype, ICQ), Windows Media Player, Office, and a specific internal software (works with MS SQL). I have the following problem: the Windows audio service hangs up that leads to hangup of all programs which use it, such as: any sites in Internet with
    a flash content (in all browsers), ICQ, Skype.Even logging out the session hung when tried to lose a sound. It's impossible to stop or restart service from the services.msc the service just hang with status "restarting". To stop service I terminate svchost
    process. As soon as the audio service is stopped - all programs start to work correctly (certainly without a sound). This problem appeared not suddenly - periodic hangups of programs on servers were marked long ago (more than half a year), but not directly
    were connected to audio service, especially there were they rather rare (on the average once a week - two) and were corrected by server reset. The error message: 
    Error container , type 0 
    Event name: AppHangXProcB1 
    Reply: No data 
    Ident CAB: 0 
    Problem signature: 
    P1: iexplore.exe 
    P2: 9.0.8112.16446 
    P3: 4fb57c8f 
    P4: 77c1 
    P5: 131200 
    P6: svchost.exe:AudioClientRpc 
    P7: 0.0.0.0 
    P8: 
    P9: 
    P10: 
    shall suggest an idea about a sound service, but in Event Viewer has no Windows Audio events. 
    Recently I updated Skype to the last version 6.0.66.120. Before was 4.2.35.155 because versions 5хх on Windows2008R2 with the Remote Desctop Services actually don't
    work, if users at the server more than one or two. We checked the sixth version by the test machine with the terminal environment and very were delighted to its normal working capacity. However after installation of this client on production servers it appeared
    that hangups of programs on servers began to occur on the average time at an o'clock in case of an average daily load (about 20 users on one server). If you have worked one or two users, problems weren't watched. Internet search led me to the support page
    Skype, where the Windows 7 x64 user faced a similar problem in the fifth version of the program. But the solutions proposed by the support team does not help me. In addition, I found the advice to disable enhancements in the properties of the playback device,
    but it is impossible for the "Remote Audio" device. 
    At the moment, on servers where I updated the Skype, I disabled the audio service. If within a reasonable time, I do not find a solution, I will have to revert
    to an older version of Skype, but I would like to solve the problem completely. 

    Enable the Allow audio and video playback redirection Group Policy setting
    To allow audio and video playback when connecting to a computer running Windows Server 2008 R2, you must enable the Allow audio and video playback redirection Group Policy setting. The Allow audio and video playback redirection Group Policy setting is located
    in Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Device and Resource Redirection and can be configured by using either Local Group Policy Editor or the Group Policy Management
    Console (GPMC).
    For more information about Group Policy settings for Remote Desktop Services, see the Remote Desktop Services Technical Reference (http://go.microsoft.com/fwlink/?LinkId=138134).
    Is this policy applied? Refer:
    http://technet.microsoft.com/en-us/library/dd759165.aspx
    Also, have you tried update the audio device driver for this terminal server?

  • Windows Service Enterprise Library Data Access Application Blocks Connection Pooling Issue

    Hello,
    We are developing a windows service using c# .net v 4.5.1 which communicates with SQL database (SQL 2008 R2 x64), communication with SQL server is done using Enterprise Library data access block v 6, The windows service does a file copy process in bulk &
    updates the database about the status of file copy, it is observed that as soon as we start the service the number of connections get max out & we start receiving a "Timeout expired.  The timeout period elapsed prior to obtaining a connection
    from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached."
    This issue is only observed when we run the code logic by deploying it as a windows service, When we run the exactly same code as a standalone exe (right click -> run as administrator) / non windows service, the connections on database are not exceeded
    & we do not receive the above mentioned error.
    The code block which makes calls to the database is under the c# "using" statement, hence connection pooling should be handled by default.
    Could you please recommend any suggestions on areas which I might have missed on to investigate this issue.
    Thanks in advance.

    Hi
    The issue got resolved after refresh the SCOM Data base access service  account in SQL 2012.
    Unable to launch the operations manager 2012 R2 console after extended the C drive of the SQl server ,getting error "The Data
    Access service is either not
    running or not yet initialized.
    Got to your SQL server -->databases-operationsmanager--security-users--locate the daa service account and refresh.issue fixed and am able to luanch.

  • Planning Login issue And EPM windows services error

    Hi All,
    I require help from you guys. I have couple of issues while installing Hyperion 9.3.1 on a sandbox.
    (which is a win2003 SP2)
    Issue1: I have Installed all the applications as mentioned in the Hyperion Documentation. In windows services
    I can't able to start the following services.
    -> Hyperion S9 EPM Architecht process Manager
    -> Hyperion S9 EPM Architecht job Manager
    -> Hyperion S9 EPM Architecht Event Manager
    -> Hyperion S9 EPM Architecht Engine Manager
    Though i could able to start the two other services( Web ATS5 and Data Synchonization ATS5) successfully.
    Error I am getting is like ::: some services stop automatically if they dont have work to do.................
    Issue2 : I could be able to login to Hyperion Appwizard page. when i completed the steps of creating the Application,
    i clicked Finish button. Its displaying error like Error in processing the page please check log for details.
    Please help me to resolve these issue. IF you ever had faced any of these.
    Thanks in Advance,

    Hi John,
    Following is the Captured log file. I followed the steps as you mentioned to capture.
    After reading the log, I came to know that there are no privileges for
    my Table space in planning database schema.
    Can you just let me know, wether i am correct or not.
    So that i can approach my DBA and find out....
    Connection to the datasource created successfully.
    createSchema hyperion.jdbc.base.BaseBatchUpdateException: [Hyperion][Oracle JDBC Driver][Oracle]ORA-01950: no privileges on tablespace 'USERS'
    hyperion.jdbc.base.BaseBatchUpdateException: [Hyperion][Oracle JDBC Driver][Oracle]ORA-01950: no privileges on tablespace 'USERS'
         at hyperion.jdbc.base.BaseStatement.executeOneStatementAtATime(Unknown Source)
         at hyperion.jdbc.base.BaseStatement.executeBatchEmulation(Unknown Source)
         at hyperion.jdbc.base.BaseStatement.executeBatch(Unknown Source)
         at com.hyperion.planning.sql.HspSetupSQLImpl.createSchema(Unknown Source)
         at com.hyperion.planning.HspManageApplication.createApp(Unknown Source)
         at com.hyperion.planning.appdeploy.HspManageAppSession.createApplication(Unknown Source)
         at HspCreateApp.Handle(Unknown Source)
         at HspCreateApp.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Unknown Source)
    Unable to create Scehma for application. Exiting Application Creation.
    Exception in Application Creation :Unable to create Scehma for application. Exiting Application Creation.
    java.lang.IllegalStateException: Unable to create Scehma for application. Exiting Application Creation.
         at com.hyperion.planning.HspManageApplication.createApp(Unknown Source)
         at com.hyperion.planning.appdeploy.HspManageAppSession.createApplication(Unknown Source)
         at HspCreateApp.Handle(Unknown Source)
         at HspCreateApp.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Unknown Source)
    java.lang.RuntimeException: Create application failed.
         at com.hyperion.planning.appdeploy.HspManageAppSession.createApplication(Unknown Source)
         at HspCreateApp.Handle(Unknown Source)
         at HspCreateApp.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Unknown Source)
    Error terminating Essbase connection: java.lang.NullPointerException

  • Classic JVM hangs when running Tomcat as Windows Service

    Hi!
    I am running a Tomcat 3.2.4 application, written with Java 1.3.1_01.
    To run it as a Windows Service (W2000), I am using a slightly altered version of JavaService, which works fine so far: I can use both the "hotspot" and the "server" JVM's (by selecting the jvm.dll from the respective subfolder of the JDK/jre/bin folder).
    However, when I try to run the same application with the "classic" JVM, the service starts, inside of it Tomcat starts, the first output appears (to the stdout logfile) and after some time Tomcat simply hangs - it doesn't respond to anything anymore, 0% CPU, no output to logfiles anymore, doesn't even respond to normal Tomcat shutdown (e.g. when stopping the service, Windows waits the standard timeout then just kills it).
    Using the classic JVM in a console (e.g. not through JavaService and the classic/jvm.dll) works fine! No problems!
    Anyone here who can offer any help on this?
    Any hints why Tomcat may behave correctly in 5 out of six possible configurations (hotspot-server/client as service or console or classic as console) but hanging with 1 configuration (classic as service)?
    Also, on my W2000 box where this happens, the moment Tomcat hangs, I hear a Windows warning sound being played (the standard warning gong), like it happens when an info dialog pops up - only there is no dialog or whatever and the same moment Tomcat's CPU usage drops to 0% (although the app is still in startup and should do some more work for a few seconds).
    This also doesn't always happen at the same moment during startup, but each time at a different moment, e.g. I can not pin it down to something that is done during startup, it just happens a short while (sometimes earlier, sometimes later) after startup...
    Of course, I could simply say "forget classic, it's being phased out anyway", only: The SAME thing happens with IBM's Java 1.3 VM too (except for the gong sound, which seems to be Sun-JVM specific ;-)! And I would very much like my app to be able to run on IBM's VM (usually I'm using Sun's VMs everywhere, but we have a few stray W2000 boxes with SP2 where Sun's 1.3.1_0x VMs crash with our application [not hang like described above, but really crash, even when run as a console]) and on those boxes the IBM JVM in a console works fine - now I only have to get it working as a service too (and while researching why it hangs I saw that Sun's classic JVM hangs too, so I figured, I first find out why that happens, with the hope that the fix is applicable to IBM's JVM too...).
    Thanks already,
    Johannes

    re setting classpath when using JavaService
    for Win2k, Tomcat 3.3.1a, JDK1.2
    below is my script for creating/installing JavaService
    (based on Alexandria web site version). However, if i
    try to add .jar files to classpath (ie, CP environment
    variable), the service does not work. It only works
    when this single .jar file is there. How can .jar or
    .zip files be added to classpath for this service?
    I've not been working with Tomcar as a service, so can't help directly, but can offer some comments that might be of use (apologies if they aren't!).
    There are Tomcat scripts for V3.1, V3.2 and V4 with the JavaService code from Alexandria SC. Looks like you need one for V3.3 as well?
    In these others, there are fairly long lists of jar files in the classpath, so I would expect it to work correctly for the version you are using (unless there is a problem with the way that classloaders are involved, which is something that is known to get in the way for some app server-based programs).
    I would expect the classpath to work if changed from what you have listed to something like the following:
    set CP=%TOMCAT_HOME%\lib\tomcat.jar;%TOMCAT_HOME%\lib\jaxp.jar;%TOMCAT_HOME$\lib\other_library.jar
    Is that what you have tried to do, and found problems?
    Does this version of Tomcat bundle all of its resources into a single jar file (tomcat.jar), or is that a file you have created yourself?
    Is the problem found when loading and starting Tomcat itself, or from within your server-based application?
    Does it fail to load a 'standard' Tomcat library archive, or a jar file containing your own program code?
    set CP=%TOMCAT_HOME%\lib\tomcat.jar
    echo %CP%
    JavaService.exe -install "Jakarta-Tomcat"
    %java_home%\jre\bin\classic\jvm.dll
    -Djava.class.path=%CP% -Dtomcat.home=%TOMCAT_HOME%
    -Djava.security.policy=%TOMCAT_HOME%/conf/tomcat.policy
    -Xms128m -Xmx128m -start
    org.apache.tomcat.startup.Main -params start -stop
    org.apache.tomcat.startup.Main -params stop -out
    %TOMCAT_HOME%\logs\stdout.log -err
    %TOMCAT_HOME%\logs\stderr.log
    Regards,
    John Rutter

  • Performance issue when put weblogic in Windows service

    I am running a performance test on our application which sits on top of bea weblogic server 7.0sp2, I found out when I run the server as windows service, performance is much worse than I run it in command prompt. any thoughts ?
    btw, I am running W2K SP4 server, 4G MEM, 4 CPUSs

    It's hard to tell without more information, but my first suggestion
    would be to double-check that the same parameters/config are being used
    in both cases.
    Any idea what part of your app is taking more time?
    -- Rob
    paul yan wrote:
    I am running a performance test on our application which sits on top of bea weblogic server 7.0sp2, I found out when I run the server as windows service, performance is much worse than I run it in command prompt. any thoughts ?
    btw, I am running W2K SP4 server, 4G MEM, 4 CPUSs

  • Itunes is causing wifi to have hanging issues

    I've been running into this issue since the 13th of this month. My wifi is taking longer to load due to itunes. Been checking via my router and this is what shows up:
    INF
    2015-03-13T11:16:47-04:00
    acs
    session started, server: '://cwmp.c01.sbcglobal.net/cwmp/services/CWMP', event code(s): '2 PERIODIC'
    WRN
    2015-03-13T11:16:47-04:00
    acs
    httpc_poll_dispatch - Connection refused
    WRN
    2015-03-13T11:16:47-04:00
    acs
    session failed...
    INF
    2015-03-13T11:16:47-04:00
    acs
    session will be retried in 639334(ms)
    INF
    2015-03-13T11:27:43-04:00
    acs
    retried session started, server: '//cwmp.c01.sbcglobal.net/cwmp/services/CWMP', event code(s): '2 PERIODIC'
    WRN
    2015-03-13T11:27:43-04:00
    acs
    httpc_poll_dispatch - Connection refused
    WRN
    2015-03-13T11:27:43-04:00
    acs
    session failed...
    INF
    2015-03-13T11:27:43-04:00
    acs
    session will be retried in 795953(ms)
    INF
    2015-03-13T11:41:13-04:00
    acs
    retried session started, server: '//cwmp.c01.sbcglobal.net/cwmp/services/CWMP', event code(s): '2 PERIODIC'
    WRN
    2015-03-13T11:41:13-04:00
    acs
    httpc_poll_dispatch - Connection refused
    WRN
    2015-03-13T11:41:13-04:00
    acs
    session failed...
    INF
    2015-03-13T11:41:13-04:00
    acs
    session will be retried in 820858(ms)
    INF
    2015-03-13T11:55:13-04:00
    acs
    retried session started, server: '//cwmp.c01.sbcglobal.net/cwmp/services/CWMP', event code(s): '2 PERIODIC'
    WRN
    2015-03-13T11:56:13-04:00
    acs
    httpc_poll_dispatch - Connection timed out
    WRN
    2015-03-13T11:56:13-04:00
    acs
    session failed...
    INF
    2015-03-13T11:56:13-04:00
    acs
    session will be retried in 901694(ms)
    INF
    2015-03-13T12:11:16-04:00
    acs
    retried session started, server: '//cwmp.c01.sbcglobal.net/cwmp/services/CWMP', event code(s): '2 PERIODIC'
    WRN
    2015-03-13T12:11:16-04:00
    acs
    httpc_poll_dispatch - Connection refused
    WRN
    2015-03-13T12:11:16-04:00
    acs
    session failed...
    INF
    2015-03-13T12:11:16-04:00
    acs
    session will be retried in 1259457(ms)
    INF
    2015-03-13T12:32:16-04:00
    acs
    retried session started, server: '//cwmp.c01.sbcglobal.net/cwmp/services/CWMP', event code(s): '2 PERIODIC'
    WRN
    2015-03-13T12:33:16-04:00
    acs
    httpc_poll_dispatch - Connection timed out
    WRN
    2015-03-13T12:33:16-04:00
    acs
    session failed...
    INF
    2015-03-13T12:33:16-04:00
    acs
    session will be retried in 1011177(ms)
    INF
    2015-03-13T12:50:13-04:00
    acs
    retried session started, server: '//cwmp.c01.sbcglobal.net/cwmp/services/CWMP', event code(s): '2 PERIODIC'
    I'm out of ideas what might be causing this wireless issue. I've been avoiding updating to the newest itunes version due to crash issues I've heard about, but now I'm concerned as if to whether it's even safe to use it at all.
    I also ran into a 'Windows 7 hanging on startup' issue. I disabled all things Apple and it seemed to fix the issues, including the wifi hang. But sadly it was only temporary. I once again ran into the wifi issue.
    Anyone else running into something similar? Any help would be appreciated. Thanks.

    Is it the iPad that is the only device that cannot connect to the Internet....and other wireless devices can connect OK.....or.....is it a case of none of the wireless devices being able to connect to the Internet?
    One of the potential issues here is that the iPad cannot be used to make any configuration changes to the older version of the AirPort Express that you have, so hopefully you have another Mac there that could be used to make any changes if needed.

  • Excel 2007 "Hang" issue when copy/pasting.

    Hi.
    I have a user, using terminal services from a HP thin client. The server is a Windows server 2008 R2 SP1, Office 2007 SP3. The user is trying to copy from a IBM access session into Excel, sometimes the Excel will hang, an needs to be forcefully closed down
    using the Task Manager. I have made sure that the IBS Access is using the clipboard function on the server. Other users can copy/paste from this program without any issues. The server is fully updated and the office pack also.
    Any suggestions on where to start?
    Regards Martin

    Hi Martin,
    Thank you for posting in Windows Server Forum.
    Thus from your description it seems that particular user is facing the hangs issue, please correct me if there is anything misunderstand from my side.
    Does this happens for all Excel file with that user?
    Please try with RDP 8.1 for user and check the result. Please check the network connectivity is good. As user is copy pasting from IBM session it can create a little delay with file size or corrupt Excel file. The issue might also appear because the size for
    Excel sheet would be very high and thus during the logon time it will take a long time to open. Also it may take into hang issue for the users. In addition also check below link for information.
    What can cause slow copy and paste in Excel?
    http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2011/09/08/what-can-cause-slow-copy-and-paste-in-excel.aspx
    Hope it helps!
    Thanks,
    Dharmesh

  • Help, which windows Service msut be on to run Adobe Bridge CS3?

    hi all,
    I'm having trouble opening Adobe Bridge CS3, theres a windows popup that says "Adobe Bridge has encountered a problem and needs to close" error message when i try to start.
    I can run the other Adobe Cs3 applications fine, i've been playing around with the disabling of windows services to increase bootup time. i'm afraid i may have accidentally disabled something necessary
    pls advice on how to get it working.. i'm on win xp pro sp2
    thanks

    When you get the "Bridge has encountered an error" popup box, check the technical info hyperlink to see what's the problem. It may point to a DLL that had an error.
    From there, check the web to see what that DLL relates to, which may or may not give you a lead. Maybe something that needs to be running in WinXP, maybe a 3rd party product that needs to be fixed/removed/re-installed.
    Why do I say this? I had the same issue on Bridge after getting the trial version. Worked for a while, then suddenly stopped working with the same startup dialog box and a quick shutdown. Digging a bit as above pointed to a DLL that was related to Quicktime. I went to the Apple site and downloaded/installed the latest version of Quicktime, and the Brige problem was cured.

  • Permissions for Windows Service on Server

    Post Author: bdimon
    CA Forum: Authentication
    I wrote a Windows service running as an Active Directory user. It cannot print on the Windows Server so I wrote a windows application to test the permissions. When a user with local admin rights runs the test application, it prints. He starts the program using the "Run As" option and enters the Active Directory user from the service, he gets the same error as the Windows Service gets. This must be permissions-based.
    When I installed this Windows Service on a staging server, everything was fine. However the staging server was not "secured" by the network team so the Active Directory user had Read/Execute permissions on the C: drive. I do not want to ask for these permissions on the production server's C: drive.
    The error is:
    System.Exception: Load report failed. ---> System.Runtime.InteropServices.COMException (0x800002AD): Error in File UNKNOWN.RPT:
    The request could not be submitted for background processing.
       at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
       at WindowsApplication1.frmTestServerPrint.PrintCrystalReport(String& ErrorText, String ReportFileName, String PrinterLocation, Int32 PayTransStatusCode)

    Post Author: jgreg311
    CA Forum: Authentication
    I believe I'm having a similar problem, and was hoping to see if either you have found an answer to the problem or reactivate this thread in hopes someone will finally answer us.I'm creating reports using a windows service as well.  The report files are compiled into the DLL, and they are being exported to save them to disk.   The error is being generated when the report object is first accessed (which happens to be when attempting to set the Text property on a TextObject).  It works fine on my development machine.  I've installed the service on the production server using a Visual Studio 2005 Setup and Deployment project.  I added the 2005 Crystal merge module to the setup, so all necessary files should exist on the server.  The service is running as a domain user that has admin rights on the local machine, but we're still getting this error that seems, according to posts I've found online, to be a permissions issue.Here is the exception in its entirety:
    Exception Type:
    System.Exception
    Exception Message:
    Load report failed.
    Exception Stack Trace:
    at
    CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
    at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String
    filename, OpenReportMethod openMethod, Int16 parentJob) at
    CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String
    reportName, OpenReportMethod openMethod, Int16 parentJob) at
    CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport()
    at
    CrystalDecisions.CrystalReports.Engine.ReportDocument.get_ReportDefinition()
    at ...
    Inner Exception:
    System.Runtime.InteropServices.COMException (0x800002AD): Error in File
    UNKNOWN.RPT: The request could not be submitted for background
    processing. at
    CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object&
    DocumentPath, Int32 Options) at
    CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object&
    DocumentPath, Int32 Options) at
    CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() Any help with this would be GREATLY appreciated.  Once again Crystal Reports are the only thing holding up an important project.

  • Setting up OIM to start as a Windows Service running under Weblogic 10.3.2

    Hi,
    On recommendation from our Oracle Rep. we have begun migrating our existing OIM installation on Oracle AS to a Weblogic Application Server. As such we are looking for a way to get the OIM application to run as a service in windows - so we dont have to start it manually after a reboot and so that system monitoring can alert us if/when the application crashes for some reason.
    I have asked Oracle support - which basically said that no such howto/documentation exists and that "One needs to debug on their own when face any issue." (whatever the h*** that means).
    I was thinking that we werent the first customers trying to get the OIM webapplication to start automatically under weblogic and that someone must have figured out a way to accomplish this ?
    Any advice on how to do this will be greatly appreciated.
    Thank you in advance.
    /Jacob

    Hi Jacob,
    See this post that I answered few time ago. Re: Keeping Remote Manager running - Windows
    Our OIM is running as a Windows Service.
    REnato

  • Problems with Comodo Kill Switch, Windows Services & Bitlocker Encryption on Asus N56VZ

    Hi All,
    So recently I found myself stuck in a different scenario than before, and after many hours researching and efforts to fix this I still find myself stuck  yet with a few options still to fix.
    What is the problem?
    So as a security cautious user when i first got to Windows 8.1 Pro 64Bit I encrypted both the C and D drive (Split the main disk) to protect myself and my family. Unfortunately that has not been very helpful with the way in which booting and running from
    either external USB devices or CD/DVD works, not allowing myself to at all.
    My usual security suit I  use is Comodo Internet Security, which additionally comes with Comodo Kill Switch. Whilst using the application instead of stopping one of the TCP connections I was meant to I accidently stopped an Windows Explorer connection.
    For some reason since then Windows Explorer, nor most windows apps or services themselves will run. For example msconfig will run but sfc /scannow or mmc will not, whether in safe mode or normal mode.
    What Caused the Problem?
    Cannot 100% say
    What I Think Caused the Problem?
    Myself running Comodo Kill Switch stopping a vital server connection with Windows Explorer that messed up alot. Or a potential Virus unknown how cannot fully scan system as wont boot externally or run many apps.
    Additional Info
    Asus Webcam is Disabled on Purpose
    Laptop was fully customized to run latest games full graphics minus Anti Aliasing, works with Evolve + CoD Advanced Warfare
    Laptop does not boot if USB Keyboard plugged in, works with everything else normal (had this on other systems no problem for me)
    Ask me for more info if required to add here, braindead again
    Specifications of my system
    Intel® Core™ i7 3610QM Processor
    Windows 8.1 Pro 64Bit
    Intel® HM76 Chipset
    DDR3 1600 MHz SDRAM, 2 x SO-DIMM 8GB
    15.6" HD (1366x768)/Full HD (1920x1080)/Wide View Angle LED Backlight
    NVIDIA® GeForce® GT 650M with 2GB DDR3 VRAM
    1TB 5400RPM OR 750GB 5400/7200RPM (Cannot remember off top of head, braindead)
    Super-Multi DVD 
    Kensington lock (Security Feature)
    LoJack (Security Feature)
    BIOS Booting User Password Protection (Security Feature)
    HDD User Password Protection and Security (Security Feature)
    Pre-OS Authentication by programmable key code (Security Feature)
    What Can Run and Won't Run?
    ON BOOT:
    Bitlocker Encryption Password & Advanced Settings are accessible
    Bios (password protected) is accessible
    Windows Recovery Mode is accessible (Think it is F9 or F10)
    Windows Logon Password Screen is accessible
    ON NORMAL/SAFE-MODE START UP:
    After Log-In Windows Explorer will not run
    Task Manager will run, also allows me to browse the files when trying to start new task
    Can run Command prompt
    Cannot run any control panel items
    Cannot run services.msc
    Cannot run mmc
    Cannot run sfc
    Every time it metions windows drive is locked
    Start Error's when running certain applications (Will post codes soon)
    Rufus USB Tool does run
    Cannot boot Kali Linux off USB
    Cannot boot Windows 8.1 off USB
    Cannot boot Windows 8.1 off DVDRW
    Fixwin2 will not run
    Apps either work or don't whether in safe mode or normal
    Cannot use Windows Installer
    What Fixes I Have Tried So Far
    Ok so like any normal user I don't want to lose my files. So here are what I have tried so far:
    Repair MBR (Repair Completed, No Luck)
    SFC /SCANNOW (Returns Error 'Windows Resource Protection could not start the repair service')
    Tried sfc /SCANNOW /OFFBOOTDIR=c:\ /OFFWINDIR=c:\windows (Could not access drive)
    Fixwin2 (Will not run in either normal or safe mode)
    Booting using Windows 8.1 via USB (Cannot boot from extermal devices due to Bitlocker Encryption)
    Booting using Kali Linux Via DVD & USB (Cannot boot from external devices due to Bitlocker Encrytption)
    How do I know it is because of Bitlocker, because last time I disabled it, I could run from external devices
    Tried to run bitlocker to change settings (Will not run)
    Have used both password and recovery keys to unlock driver, they work but when applications are running on windows the drive is still locked?
    Tried windows Automatic Diagnostic and Repair (Could not repair anything, did make a log I am still to extract from the syste)
    There are No System Restore Points
    I'm sure there is much more information I could post however I will leave it on an ask to know basis, apart from the log files and further information to gather. Below is my list of trial and error fixes to try for today (need more ideas and help please!):
    Hiren's 15.2 Boot CD via DVD (NOT ABLE TO BOOT)
    Hiren's 15.2 Boot CD via USB (NOT ABLE TO BOOT)
    Research into the Bios and Possible Update in-case of implementation of Virus, can access flash utility (STILL NOT TESTED)
    Try and get a portable version or a working version of windows installer to try and re-install Comodo Internet Security (STILL NOT TESTED)
    Another way to disable Bitlocker
    Anti-Malware / Anti-Virus Scan If Possible to Run One
    Bitlocker Repair Tool, will try this also
    I have posted this as have not found much info online, usually find it and crack on but this time things are a little more tricky, my priority task I really need to do is remove the Bitlocker Encryption, but if the application will not run... what do I do
    then?
    Thanks for your time reading all, Sorry for any poor formatting or spelling.
    Update 1: MMC.exe Error Code
    Ok so now have the computer in safe mode, still same as before, no explorer.exe, no services etc... Just went into the Task Manager > Services (Tab) > Open Services (Option at bottom)
    This is the error I get:
    'The Instruction at 0x785a746c referenced memory at 0x000000a8. The memory could not be read.
    Any Ideas on what this error is and why?
    Update 2: CHKDSK Works with no Fix
    Update 3: Hiren's 15.2 Boot CD - USB Boot still no luck booting around Bitlocker Encryption
    Just to explain again, I already have unlocked the drive with correct bitlocker password or recovery key yet the drive remains locked not allowing windows refresh of files of complete install from the windows recovery menu as keeps saying drive is locked

    Ok so attempt number two to write this update via bloody phone! (Just refreshed page whilst writing!)
    Update 4:
    Problem - cannot run from bootable devices (DVD/USB)
    Cause - bitlocker fully encrypted drive stops this working
    Repair - Boot up holding F9 to enter windows recovery Input Bitlocker recovery keys to unlock drives
    Navigate to Command Prompt in advanced settings Execute following code:
    Repair-bde c: d: -rp 000111-222333-444555-etc...
    (Code found from https://technet.microsoft.com/en-us/library/ee523219%28v=ws.10%29.aspx)
    Note for those using this: It is common while unlocking certain drives to get errors such as: Quote from http://www.benjaminathawes.com/2013/03/17/resolving-partial-encryption-problems-with-bitlocker/
    "LOG INFO: 0x0000002aValid metadata at offset 8832512000 found at scan level
    1.LOG INFO: 0x0000002b Successfully created repair context.
    LOG ERROR: 0xc0000037 Failed to read sector at offset 9211592704.
    (0×00000017) LOG ERROR: 0xc0000037 Failed to read sector at offset 9211593216.
    (0×00000017) …followed by around 20 similar entries that differed only by the offset value"
    Repair Status for Update 4: COMPLETED - However over wrote D drive data so now need to recover that
    Problem 2 - windows services corrupted along with windows files
    Cause - Unknown
    Repair - wait until system is fully decrypted Once fully decrypted ensure boot from USB/DVD
    Re-do fixes that would not work before if this has fixed boot issue Confirm fix / update post Hope anything I put here helps others also

  • Powershell unzip with shell.application not working when launched from windows service

    I have a deployment agent on a machine implemented as a windows service. Service is 32-bit and runs on windows server 2008R2 x64 SP1 with powershell V2. Powershell script requires elevation and to run under x64 because of dependency to powershell module
    'IIS Administration'. To achieve this, the service starts a cmd file which in turn launches powershell x64 console:
    C:\WINDOWS\sysnative\WindowsPowerShell\v1.0\powershell.exe "Start-Process C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell -ArgumentList '-ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -File C:\Temp\EndJobCmd\Install.ps1' -Verb RunAs"
    This seems to work well. The problem I have is that the script has a sequence where it unpacks a zip file to a destination folder using shell.application, this works fine when triggered manually on the server or through the task scheduler, but when triggered
    from the service it does not extract any files at all (cannot see any errors thrown by the script but it seems to continue to execute as it logs a successful message to the event log after finishing).
    Unzip sequence looks like:
    $shell = New-Object -com shell.application
    $pkg = $shell.namespace($sourceFile)
    $installDir = $shell.namespace($targetDir)
    $installDir.Copyhere($pkg.items(), 20)
    Any advice greatly appreciated. I have searched some and seen a few people with similar issue but have yet to find a solution.

    If it's still actual, I managed to fix this with having CopyHere params equal 1564. 
    So in my case extract zip function looks like:
    function Expand-ZIPFile{
    param(
    $file, $destination
    $shell = new-object -com shell.application
    $zip = $shell.NameSpace($file)
    foreach($item in $zip.items())
    $shell.Namespace($destination).copyhere($item,1564)
    "$($item.path) extracted"
    1564 description can be found here - http://msdn.microsoft.com/en-us/library/windows/desktop/bb787866(v=vs.85).aspx:
    (4) Do not display a progress dialog box.
    (8) Give the file being operated on a new name in a move, copy, or rename operation if a file with the target name already exists.
    (16) Respond with "Yes to All" for any dialog box that is displayed.
    (512) Do not confirm the creation of a new directory if the operation requires one to be created.
    (1024) Do not display a user interface if an error occurs.

  • Printing Crystal Report to Printer from Windows Service

    Hello Support,
    We are currently using 13.0.3.612 version of Crystal report. We want to print the report to the printer from the windows service. For printing the report to the printer we are using the “PrintOutputController.PrintReport” method. At our end on the Windows 8 machine this method is giving following error:
    Message: Error HRESULT E_FAIL has been returned from a call to a COM component.
    StackTrace:    at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.PrintReport(PrintReportOptions options)
       at PMLWLibrary.CrystalReport.LoadReports()
    And on the Windows 7 machine the report is sent to the print spooler, however the report is not printed on the printer. Not sure what could be causing the issue. Can you please let us know what could be causing the issue.

    Hi Brian,
    Thank you for your response.
    We tried running the service under the domain user account as well which has access to the printer, but even this fails. Further, from the regular .net application when we try to print the report to the printer, it directly prints the report without displaying any print window. So I assume that even from the service no print window should be launched. Can you please confirm on this.
    We are attaching herewith the code snippet which we have used to print to printer through the service. Can you please review the same and let us know if we are missing something here.
    Dim printReportOptions As New CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions
    Dim printOutputController As New CrystalDecisions.ReportAppServer.Controllers.PrintOutputController
    Dim rptClientDoc As CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument
    rptClientDoc = ReportDocument.ReportClientDocument
    printReportOptions.PrinterName = "\\pc2\HP LaserJet 1015"
    printReportOptions.JobTitle = [Enum].GetName(GetType(ReportNames), PrinterSetting)
    printReportOptions.Collated = False
    printReportOptions.AddPrinterPageRange(1, 1)
    rptClientDoc.PrintOutputController.PrintReport(printReportOptions)

  • Windows service write to event log

    Have strange conduct of code within my application. I've created windows service the same as according to MSDN default instruction:
    https://msdn.microso...=vs.110%29.aspx
    its working and logging to event log correctly. After that i copied that project and based on it i started to create second one almost similar one. my issue is within below part of code belongs to ProjectInstaller.vb when i installed it and tried to Start i
    get message that Windows service started and stoped imedietly.
    Imports System.ComponentModel
    Imports System.Configuration.Install
    Public Class ProjectInstaller
    Public Sub New()
    MyBase.New()
    'This call is required by the Component Designer.
    InitializeComponent()
    'Add initialization code after the call to InitializeComponent
    End Sub
    Protected Overrides Sub OnBeforeInstall(ByVal savedState As IDictionary)
    Dim parameter As String = "MySvcDeon2"" ""MyLogFileSvcDeon2"
    Context.Parameters("assemblypath") = """" + Context.Parameters("assemblypath") + """ """ + parameter + """"
    MyBase.OnBeforeInstall(savedState)
    End Sub
    End Class
    Within this line: Dim parameter As String = "MySvcDeon2"" ""MyLogFileSvcDeon2"
    When i change it to this form then service its starting correctly without any error meassage:
    Dim parameter As String = "MySvcDeon1"" ""MyLogFileSvcDeon1"
    its working. But Deon2 is already created by my first windows service. Whats wrong?

    i also tried from official msdn site  but same error, anyhow, see my code below:
    ProjectInstaller.vb:
    Imports System.ComponentModelImports System.Configuration.InstallPublic Class ProjectInstaller    Public Sub New()        MyBase.New()        'This call is required by the Component Designer.        InitializeComponent()        'Add initialization code after the call to InitializeComponent    End SubEnd Class
    ProjectInstaller.Designer.vb
    <System.ComponentModel.RunInstaller(True)> Partial Class ProjectInstaller    Inherits System.Configuration.Install.Installer    'Installer overrides dispose to clean up the component list.    <System.Diagnostics.DebuggerNonUserCode()> _    Protected Overrides Sub Dispose(ByVal disposing As Boolean)        Try            If disposing AndAlso components IsNot Nothing Then                components.Dispose()            End If        Finally            MyBase.Dispose(disposing)        End Try    End Sub    'Required by the Component Designer    Private components As System.ComponentModel.IContainer    'NOTE: The following procedure is required by the Component Designer    'It can be modified using the Component Designer.      'Do not modify it using the code editor.    <System.Diagnostics.DebuggerStepThrough()> _    Private Sub InitializeComponent()        Me.ServiceProcessInstaller1 = New System.ServiceProcess.ServiceProcessInstaller()        Me.ServiceInstaller1 = New System.ServiceProcess.ServiceInstaller()        '        'ServiceProcessInstaller1        '        Me.ServiceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.LocalSystem        Me.ServiceProcessInstaller1.Password = Nothing        Me.ServiceProcessInstaller1.Username = Nothing        '        'ServiceInstaller1        '        Me.ServiceInstaller1.Description = "Chorus windows service collector"        Me.ServiceInstaller1.DisplayName = "SvcChorusCollector"        Me.ServiceInstaller1.ServiceName = "SvcChorusCollector"        Me.ServiceInstaller1.StartType = System.ServiceProcess.ServiceStartMode.Automatic        '        'ProjectInstaller        '        Me.Installers.AddRange(New System.Configuration.Install.Installer() {Me.ServiceProcessInstaller1, Me.ServiceInstaller1})    End Sub    Friend WithEvents ServiceProcessInstaller1 As System.ServiceProcess.ServiceProcessInstaller    Friend WithEvents ServiceInstaller1 As System.ServiceProcess.ServiceInstallerEnd Class
    SvcChorusCollector.vb:
    Public Class SvcChorusCollector
        Private Const EvtLogSource As String = "MySourceSvcChorusCollector"
        Private Const EvtLogName As String = "MyLogSvcChorusCollector"
        Private syncRoot As New Object
        Dim timer As System.Timers.Timer = New System.Timers.Timer()
        Sub New()
            ' This call is required by the designer.
            InitializeComponent()
            ' Add any initialization after the InitializeComponent() call.
            If Not System.Diagnostics.EventLog.SourceExists(EvtLogSource) Then
                System.Diagnostics.EventLog.CreateEventSource(EvtLogSource, EvtLogName)
            End If
            EventLog1.Source = EvtLogSource
        End Sub
        Protected Overrides Sub OnStart(ByVal args() As String)
            ' Add code here to start your service. This method should set things
            ' in motion so your service can do its work.
            EventLog1.WriteEntry("In OnStart")
            ' Set up a timer to trigger every minute.
            timer.Interval = 1000 ' 1 seconds
            'unfortunetly OnTimer event handler will be executed even already one is running if Interval is riched by default.
            'This is because it will go multiple threading and not in main thread unless a SynchronizingObject is supplied. (Which it wasn't.) below :
            'timer.SynchronizingObject = Me
            'this is solving problem. OTher way is to make lock within OnTimer event handler as its done right now.
            AddHandler timer.Elapsed, AddressOf Me.OnTimer
            timer.Start()
        End Sub
        Protected Overrides Sub OnStop()
            ' Add code here to perform any tear-down necessary to stop your service.
            EventLog1.WriteEntry("In OnStop")
        End Sub
        Protected Overrides Sub OnContinue()
            EventLog1.WriteEntry("In OnContinue.")
        End Sub
        Private Sub OnTimer(ByVal sender As Object, ByVal e As Timers.ElapsedEventArgs)
        End Sub
    End Class
    SvcChorusCollector.Designer.vb
    Imports System.ServiceProcess<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _Partial Class SvcChorusCollector    Inherits System.ServiceProcess.ServiceBase    'UserService overrides dispose to clean up the component list.    <System.Diagnostics.DebuggerNonUserCode()> _    Protected Overrides Sub Dispose(ByVal disposing As Boolean)        Try            If disposing AndAlso components IsNot Nothing Then                components.Dispose()            End If        Finally            MyBase.Dispose(disposing)        End Try    End Sub    ' The main entry point for the process    <MTAThread()> _    <System.Diagnostics.DebuggerNonUserCode()> _    Shared Sub Main()        Dim ServicesToRun() As System.ServiceProcess.ServiceBase        ' More than one NT Service may run within the same process. To add        ' another service to this process, change the following line to        ' create a second service object. For example,        '        '   ServicesToRun = New System.ServiceProcess.ServiceBase () {New Service1, New MySecondUserService}        '        ServicesToRun = New System.ServiceProcess.ServiceBase() {New SvcChorusCollector}        System.ServiceProcess.ServiceBase.Run(ServicesToRun)    End Sub    'Required by the Component Designer    Private components As System.ComponentModel.IContainer    ' NOTE: The following procedure is required by the Component Designer    ' It can be modified using the Component Designer.      ' Do not modify it using the code editor.    <System.Diagnostics.DebuggerStepThrough()> _    Private Sub InitializeComponent()        Me.EventLog1 = New System.Diagnostics.EventLog()        CType(Me.EventLog1, System.ComponentModel.ISupportInitialize).BeginInit()        '        'EventLog1        '        '        'SvcChorusCollector        '        Me.ServiceName = "SvcChorusCollector"        Me.CanStop = True                   'if this is not set to true then will be not possible to stop service manually from service window services.msc !!!        Me.AutoLog = True        CType(Me.EventLog1, System.ComponentModel.ISupportInitialize).EndInit()    End Sub    Friend WithEvents EventLog1 As System.Diagnostics.EventLogEnd Class
    The second service is on same basis, of course service names, source,logname are diffrent. What i do wrong? Error message appearing really fast after ~8 sec

Maybe you are looking for

  • Is there a way I can persist New-WebServiceProxy or System.servicemodel.endpointaddress

    I have some Runbooks that must make upwards up 50,000 calls to various web services. I am already leveraging parallel activities but these are still required to generate a Proxy. I haven't been able to persist a web proxy between .net activities in t

  • How to solve the error 'please enter account assignment ' in BAPI_PO_CREATE.

    Hi gurus, While creating shopping cart with an  item from services type  i am getting error please enter account assignment.Please suggest me how to solve this error thanks&regards, Suneel Kumar.

  • Which shell used in crontab ?

    Hi All, I have a question..i want to understand the crontab I would like to know what SHELL being used to execute scripts defined in crontab? For ex: crontab has getcompanies.ksh shell script. But if i dont specify #!/bin/ksh in the script. what shel

  • Problem faced in condition definition in Query output

    Hi Gurus, I have a scenario where i have flat file input with Regcode, Weekno, Vehicleno as characteristics. Mileage, idletime as Keyfigures. I have created a report where i need to display the regcode as rows and mileage, idletime as columns. But th

  • How to migrate a web app from JDev 904 to JDev10132?

    Hi, I'm looking for any recommendation on how to migrate a web application from JDev 904 to JDev 10132? The application uses BC4J, Struts and DataTags. Is there tool support to migrate from DataTags to ADF DataBinding? Any hints are welcome. Thanks,