windows-services

tomcat6 windows service properties default memory

人走茶凉 提交于 2019-12-25 06:15:02
问题 Hello I have tomcat6 as a windows server. I am considering increasing the mmeory but I am not sure how much memory it currently has. It is run as a service and there is a "Configure Tomcat" icon in the start menu This has a java-tab with "Initial memory pool" and "Maximum memory pool" both of which are empty. What is the default on these? There are also some Java Options: -Djava.io.tmpdir=C:\Tomcat6\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging

Self-hosted WCF: automatically create service hosts and enable dependency injection with Autofac

十年热恋 提交于 2019-12-25 05:32:41
问题 I'm working on a Windows Service with a number of self-hosted WCF services. I'm using Autofac for DI/IoC. WCF services and endpoints are set up in app.config, and by enumerating the configured services, the Windows service is able to automatically create and open a ServiceHost for each configured WCF service. To enable dependency injection, I add a call to the AddDependencyInjectionBehavior (docs) method for each new instance of ServiceHost , but the method specifically requests a

Windows Service just stops. No messages, no alerts, errors, warning - nothing

与世无争的帅哥 提交于 2019-12-25 05:14:20
问题 I have a Windows service that just silently stops on its own. Here is the relevant code: OnStart() method: protected override void OnStart(string[] args) { try { InitializeLogging(); // we don't DO command line arguments if (args.Length > 0) { eventLog.WriteEntry("All command line arguments are ignored. You must edit the app.config file manually to make changes to what watchers are run."); throw new ArgumentException("Command line arguments are ignored."); } ReadAppConfig();

GlassFish as windows service

被刻印的时光 ゝ 提交于 2019-12-25 05:03:41
问题 I am using GlassFish 3.1.2. I want to create a service of GlassFish so that each the system start it will automatically start the GlassFish domain. In default domain domain1, there is a cluster cluster1 having two instances instance1 and instance2. But when I use the command... asadmin>domain1Service.exe start It starts the domain, but clusters are not started. So How can I make a service which can start clusters ?? Do I have to create separate service for each instance within a cluster ??

windows service not executing OnStart entry point

醉酒当歌 提交于 2019-12-25 04:41:03
问题 I have a windows service installed, Some.WindowsService wService = new WindowsService(); Some.Server server = new Server(); Some.Service service = new Service(); Some.Request request = new Some.Request(msg, Id); var ReturnedResult = server.Execute(request); I checked in Service, the "Some" is running in Service normally. I don't know how to initialize so that I can reach the protected OnStart() function in WindowsService, and so that it can call the functions in OnStart() Function. Any idea

Consistent ApplicationData path between WinForms Apps and Windows Service contexts in C#

房东的猫 提交于 2019-12-25 04:40:14
问题 I use the following code to build a desired path for an XML file: System.Environment.GetFolderPath(System.Environment.SpecialFolder.ApplicationData); When executed from a Windows Forms application, it returns: C:\Users\MyUsername\AppData\Roaming\...\Database.xml When executed from within a Windows Service, it returns: C:\Windows\system32\config\systemprofile\AppData\Roaming\...\Database.xml I am now resorting to having a custom installer action persist the path in a registry key since the

windows - access clipboard from service in c++

邮差的信 提交于 2019-12-25 04:11:24
问题 I have a Windows service written in C++ that needs to access the clipboard and read data from/paste data to it. I'm considering only textual data. From MSDN's documentation, I can use OpenClipboard , EmptyClipboard and SetClipboardData to achieve what I want to. I would have to pass NULL to OpenClipboard since I don't have any UI and hence no window handles. However, this would mean - If an application calls OpenClipboard with hwnd set to NULL, EmptyClipboard sets the clipboard owner to NULL;

How to set up my WCF service to be able to be accessed by remote clients

筅森魡賤 提交于 2019-12-25 03:49:10
问题 I have a WCF service that is being hosted in a windows service and I can connect to it and consume its services just fine when using the same machine, but when I try to run my client on a remote machine it times out and won't connect. I thought I could just update the app.config file for the client with the IP of the service machine instead of localhost, but that didn't work. Here is the app.config of the client: <system.serviceModel> <bindings> <wsDualHttpBinding> <binding name=

ServiceController.Stop() fails to stop service

↘锁芯ラ 提交于 2019-12-25 03:36:12
问题 I have a windows service which I'm trying to stop progrmatically using ServiceController.Stop() : ServiceController sc = new ServiceController(<ServiceName>); sc.Stop(); sc.Refresh(); However, when I see this service in the Services list, its status still remains as "Started". If I call the method sc.WaitForStatus() to wait till the status is changed to "Stopped", then this status is never reached. What's going wrong? 回答1: I think problem was with legacy code. We need some configuration and

Localize Windows Service

无人久伴 提交于 2019-12-25 03:28:16
问题 I want to Set Culture for Windows Service that I developed. Can someone recommend me a good read for or how to go about it. So far I have I Tried to do the Following OnStart() Dim oCultureInfo as CultureInfo = New CultureInfo("tr-TR") System.Threading.Thread.CurrentThread.Culture = oCultureInfo System.Threading.Thread.CurrentThread.UICulture = oCultureInfo After doing so I still see that My culture is US English. 回答1: Go to your setup which will be in the same solution. Right click on it and