Handle Leak -- HPZ12 process
Hello. I believe I am encountering an issue associated with an HP driver that is causing my PC to crash. I don't want to disable the services associated with the printer but it is causing my system to become unstable. I did some research and found out the svchost.exe process was generating up to and over 1 million handles. When I ran the tasklist utility below, it indicated that it was associated with pml driver HPZ12. The PID in question was PID # 2484. Can you help me?
I am running Windows XP SP3.
C:\Documents and Settings\Owner>tasklist /FI "Imagename eq Svchost.exe" /SVC
Image Name PID Services
========================= ====== =============================================
svchost.exe 1376 DcomLaunch, TermService
svchost.exe 1488 RpcSs
svchost.exe 1636 AudioSrv, Browser, CryptSvc, Dhcp, dmserver,
ERSvc, EventSystem,
FastUserSwitchingCompatibility, helpsvc,
HidServ, lanmanserver, lanmanworkstation,
Netman, Nla, RasMan, Schedule, seclogon,
SENS, SharedAccess, ShellHWDetection,
srservice, TapiSrv, Themes, TrkWks, W32Time,
winmgmt, wscsvc, wuauserv, WZCSVC
svchost.exe 1768 Dnscache
svchost.exe 1900 LmHosts
svchost.exe 1056 WebClient
svchost.exe 248 hpqcxs08, hpqddsvc
svchost.exe 276 HPSLPSVC
svchost.exe 2768 SSDPSRV
svchost.exe 2832 stisvc
svchost.exe 2484 Pml Driver HPZ12 (this one is the handle leak!!!)
svchost.exe 4728 Net Driver HPZ12
Hello. I believe I am encountering an issue associated with an HP driver that is causing my PC to crash. I don't want to disable the services associated with the printer but it is causing my system to become unstable. I did some research and found out the svchost.exe process was generating up to and over 1 million handles. When I ran the tasklist utility below, it indicated that it was associated with pml driver HPZ12. The PID in question was PID # 2484. Can you help me?
I am running Windows XP SP3.
C:\Documents and Settings\Owner>tasklist /FI "Imagename eq Svchost.exe" /SVC
Image Name PID Services
========================= ====== =============================================
svchost.exe 1376 DcomLaunch, TermService
svchost.exe 1488 RpcSs
svchost.exe 1636 AudioSrv, Browser, CryptSvc, Dhcp, dmserver,
ERSvc, EventSystem,
FastUserSwitchingCompatibility, helpsvc,
HidServ, lanmanserver, lanmanworkstation,
Netman, Nla, RasMan, Schedule, seclogon,
SENS, SharedAccess, ShellHWDetection,
srservice, TapiSrv, Themes, TrkWks, W32Time,
winmgmt, wscsvc, wuauserv, WZCSVC
svchost.exe 1768 Dnscache
svchost.exe 1900 LmHosts
svchost.exe 1056 WebClient
svchost.exe 248 hpqcxs08, hpqddsvc
svchost.exe 276 HPSLPSVC
svchost.exe 2768 SSDPSRV
svchost.exe 2832 stisvc
svchost.exe 2484 Pml Driver HPZ12 (this one is the handle leak!!!)
svchost.exe 4728 Net Driver HPZ12
Similar Messages
-
+
System
Provider
[ Name]
Microsoft-Windows-User Profiles Service
[ Guid]
{89B1E9F0-5AFF-44A6-9B44-0A07A7CE5845}
[ EventSourceName]
profsvc
EventID
1530
[ Qualifiers]
32768
Version
0
Level
3
Task
0
Opcode
0
Keywords
0x80000000000000
TimeCreated
[ SystemTime]
2011-06-11T07:37:12.000Z
EventRecordID
127007
Correlation
Execution
[ ProcessID]
0
[ ThreadID]
0
Channel
Application
Computer
Panther-PC
Security
[ UserID]
S-1-5-18
EventData
Detail
16 user registry handles leaked from \Registry\User\S-1-5-21-1082989139-2594333343-3947924465-1001: Process 2384 (\Device\HarddiskVolume1\Program Files\Common Files\microsoft shared\Windows Live\WLIDSVC.EXE) has opened key \REGISTRY\USER\S-1-5-21-1082989139-2594333343-3947924465-1001
Process 2384 (\Device\HarddiskVolume1\Program Files\Common Files\microsoft shared\Windows Live\WLIDSVC.EXE) has opened key \REGISTRY\USER\S-1-5-21-1082989139-2594333343-3947924465-1001 Process 2384 (\Device\HarddiskVolume1\Program Files\Common Files\microsoft
shared\Windows Live\WLIDSVC.EXE) has opened key \REGISTRY\USER\S-1-5-21-1082989139-2594333343-3947924465-1001 Process 2384 (\Device\HarddiskVolume1\Program Files\Common Files\microsoft shared\Windows Live\WLIDSVC.EXE) has opened key \REGISTRY\USER\S-1-5-21-1082989139-2594333343-3947924465-1001
Process 828 (\Device\HarddiskVolume1\Program Files\NVIDIA Corporation\nTune\nTuneService.exe) has opened key \REGISTRY\USER\S-1-5-21-1082989139-2594333343-3947924465-1001 Process 2384 (\Device\HarddiskVolume1\Program Files\Common Files\microsoft shared\Windows
Live\WLIDSVC.EXE) has opened key \REGISTRY\USER\S-1-5-21-1082989139-2594333343-3947924465-1001\Software\Microsoft\SystemCertificates\My Process 2384 (\Device\HarddiskVolume1\Program Files\Common Files\microsoft shared\Windows Live\WLIDSVC.EXE) has opened key
\REGISTRY\USER\S-1-5-21-1082989139-2594333343-3947924465-1001\Software\Microsoft\SystemCertificates\CA Process 2384 (\Device\HarddiskVolume1\Program Files\Common Files\microsoft shared\Windows Live\WLIDSVC.EXE) has opened key \REGISTRY\USER\S-1-5-21-1082989139-2594333343-3947924465-1001\Software\Microsoft\SystemCertificates\Root
Process 2384 (\Device\HarddiskVolume1\Program Files\Common Files\microsoft shared\Windows Live\WLIDSVC.EXE) has opened key \REGISTRY\USER\S-1-5-21-1082989139-2594333343-3947924465-1001\Software\Microsoft\SystemCertificates\SmartCardRoot Process 2384 (\Device\HarddiskVolume1\Program
Files\Common Files\microsoft shared\Windows Live\WLIDSVC.EXE) has opened key \REGISTRY\USER\S-1-5-21-1082989139-2594333343-3947924465-1001\Software\Microsoft\SystemCertificates\TrustedPeople Process 2384 (\Device\HarddiskVolume1\Program Files\Common Files\microsoft
shared\Windows Live\WLIDSVC.EXE) has opened key \REGISTRY\USER\S-1-5-21-1082989139-2594333343-3947924465-1001\Software\Microsoft\SystemCertificates\trust Process 2384 (\Device\HarddiskVolume1\Program Files\Common Files\microsoft shared\Windows Live\WLIDSVC.EXE)
has opened key \REGISTRY\USER\S-1-5-21-1082989139-2594333343-3947924465-1001\Software\Policies\Microsoft\SystemCertificates Process 2384 (\Device\HarddiskVolume1\Program Files\Common Files\microsoft shared\Windows Live\WLIDSVC.EXE) has opened key \REGISTRY\USER\S-1-5-21-1082989139-2594333343-3947924465-1001\Software\Policies\Microsoft\SystemCertificates
Process 2384 (\Device\HarddiskVolume1\Program Files\Common Files\microsoft shared\Windows Live\WLIDSVC.EXE) has opened key \REGISTRY\USER\S-1-5-21-1082989139-2594333343-3947924465-1001\Software\Policies\Microsoft\SystemCertificates Process 2384 (\Device\HarddiskVolume1\Program
Files\Common Files\microsoft shared\Windows Live\WLIDSVC.EXE) has opened key \REGISTRY\USER\S-1-5-21-1082989139-2594333343-3947924465-1001\Software\Policies\Microsoft\SystemCertificates Process 2384 (\Device\HarddiskVolume1\Program Files\Common Files\microsoft
shared\Windows Live\WLIDSVC.EXE) has opened key \REGISTRY\USER\S-1-5-21-1082989139-2594333343-3947924465-1001\Software\Microsoft\SystemCertificates\Disallowed
should i be worried or can i get some help with this ?I'm having the same problem on one of work's Server 2008 R2 machines, but the software causing the leaks are the Microsoft Windows programs
cmd.exe
robocopy.exe
conhost.exe
Microsoft can you please stop your software from leaking, thank you.
From the event viewer
Windows detected your registry file is still in use by other applications or services. The file will be unloaded now. The applications or services that hold your registry file may not function properly afterwards.
DETAIL -
6 user registry handles leaked from \Registry\User\S-1-5-21-3799963273-679199981-738785089-500:
Process 2348 (\Device\HarddiskVolume2\Windows\System32\cmd.exe) has opened key \REGISTRY\USER\S-1-5-21-3799963273-679199981-738785089-500
Process 6532 (\Device\HarddiskVolume2\Windows\System32\Robocopy.exe) has opened key \REGISTRY\USER\S-1-5-21-3799963273-679199981-738785089-500
Process 2348 (\Device\HarddiskVolume2\Windows\System32\cmd.exe) has opened key \REGISTRY\USER\S-1-5-21-3799963273-679199981-738785089-500\Software\Microsoft\Windows NT\CurrentVersion
Process 2348 (\Device\HarddiskVolume2\Windows\System32\cmd.exe) has opened key \REGISTRY\USER\S-1-5-21-3799963273-679199981-738785089-500\Control Panel\International
Process 6700 (\Device\HarddiskVolume2\Windows\System32\conhost.exe) has opened key \REGISTRY\USER\S-1-5-21-3799963273-679199981-738785089-500\Control Panel\International
Process 6532 (\Device\HarddiskVolume2\Windows\System32\Robocopy.exe) has opened key \REGISTRY\USER\S-1-5-21-3799963273-679199981-738785089-500\Control Panel\International -
Handle leak when using ADO2.7 access oracle
Ado version:2.7
OS:Window2000 professional
Oracle Server:9.2.0.1.0
Client Provider:9.2.0.1.0
Using Oracle OLEDB connection oracle
when i execute such function in my test program continuously:
Handle count of the program will increase.I know handle will increase for connection pool ,but it will stop increasing when handle count reach one value. i think this is a problem that ADO cann't match with Oracle OLEDB
better.
Any suggestion?
Set mConOracle = New Connection
mConOracle.CursorLocation = adUseClient
mConOracle.ConnectionString = "Provider=OraOLEDB.Oracle.1;Password=123;Persist Security Info=True;User ID=abc;Data Source=aaa;OLE DB Services=-1; "
mConOracle.Open
mConOracle.Close
Set mConOracle=NothingOk,
I tried out connection pooling switching on/off. Also waited some minutes for the pool timeout. But nothing happened.
So I made some further tests and this is what I found out:
- The left handles are all semaphores
- To generate a handle leak it is necessary to create an ADO object, call connect and do a database query. Actually some data must be transmitted over the network. Then close connection, release ADO object. -> 2-3 semaphore handles are left.
- Handle leak occurs indepentendly of apartment or multi threaded
- MDAC 2.7, MDAC 2.8 was used with no success
However, we hat one piece of software here, which didn't have handle leaks. So I did some more investigation on that phenomena.
This is what happened and could be used as a workaround until a fix is available:
- I recognized, that if at least one connection (which has been really established once by the underlying components) has been opened and is kept open, it is possible to create more ADO objects, use them for database retrieval and release them again without having the handle count increased.
- So the handle leak seems only to occur, if there is no more database connection in use and one of the underlying components tries to release everything. Each time this happens 2-3 semaphore handle are left.
- Finally my current workaround is to create and open on initalization of my process an ADO object and the database connection and leave this object alone without touching it again until the process ends. For every database query in any thread I can now use a new ADO object, without having the handles increased and never released.
So, this is the end for now. I hope this information can help somebody to figure out where the problem is eventually located and a fix could be released.
Hopefully,
Markus (writing under Uwes account) -
How to create Handling Unit using Process Order no. & Packing Instruction
Hi experts,
Please guide me how to create Handling Unit using Process Order number & Packing Instruction reference?Noramlly this is done using standard transaction 'COWBPACK'.
ANY FUNCTION MODULE OR BAPI TO DO THIS.
if any solution please explain with proper example..
Thanks In advance
Thanks,
YogeshHi experts,
Please guide me how to create Handling Unit using Process Order number & Packing Instruction reference?Noramlly this is done using standard transaction 'COWBPACK'.
ANY FUNCTION MODULE OR BAPI TO DO THIS.
if any solution please explain with proper example..
Thanks In advance
Thanks,
Yogesh -
Handling Contract MAnufacturing Process
Hi Friends,
We have a scenario wherein we are going to handle contract manufacturing process in our company.
The party will provide us the input materials and we have to process it to finished products and provide back to them.
In my opinion, this is the reversal cycle of process handled by subcontracting(outsourcing).
How can I incorporate this business process in SAP?
Kindly provide your expert inputs to handle this business scenario.
Regards,
JigneshHi
This scenario can be handled in following way
1) Create a Free goods PO to recieve the Input material .( since it it the customers material you cannot account the material in your books)
2) Perform GR against free goods PO-If you are taking input credit then perform J1IH -Additional excise
3) Perform Inhouse PP process
4) Raise a sales order ,Delivery ,PGI,Billing and sell the output material
Regards
Sandeep -
Handle leak - Crystal for VS 2010
I've been playing with the Crystal VS2010 runtime and have come across a problem which I believe might be a handle-leak in Crystal Reports.
I can reproduce this at will using the following example:
I created a project with a typed dataset (containing 2 empty tables with only a single column each). I then added a blank report to the project and only added a single text object to it - no data is loaded from the dataset at all.
Then, I can execute the following 100 times in a loop:
using (DataSet1 dataSet = new DataSet1())
using (CrystalReport1 report = new CrystalReport1())
report.SetDataSource(dataSet);
report.Close();
dataSet.Clear();
This I then follow with a forced garbage collect, just to make sure everything was cleaned up properly. However, +- 100 new handles were opened and using sysinternals' handle.exe, these show up as Mutexes e.g.:
1324: Mutant \Sessions\1\BaseNamedObjects\CrystalReportXalanInitilizeMutex2916l
I haven't been able to find any information about this on the forums or the internet - can anyone confirm if this is a known issue? (Or am I doing something stupid? )
Thanks!Hi,
I've tried some of your suggestions:
In you report check on No Printer and check off all o f the Verify Database options. - Made no difference
Also, be sure to use the Legacy mode in your app.config file, search for it. MS issue with DataSets. - Also, no difference
GDI Objects - These don't budge - this is a Mutex leak, not a GDI leak
As for datasets, I'm not filling the dataset - its empty. So a database does not enter into the equation, and no database connection handles are therefore ever created.
Also, I tried the printer theory by running the app on a machine without any printers installed - the problem persisted. Machines also have entirely different graphics card drivers, so highly unlikely to cause the problem.
I've also tried targeting both Framework 4.0 and Framework 2.0 - the leak occurs in both cases.
The code that I posted was only a snippet yes, but it really is 90% of the test-app. This is the whole content of Form1.cs (a single-button form):
using System;
using System.Windows.Forms;
namespace CrystalLeakTest
public partial class Form1 : Form
public Form1()
InitializeComponent();
private void ProduceReport()
using (DataSet1 dataSet = new DataSet1())
using (CrystalReport1 report = new CrystalReport1())
report.SetDataSource(dataSet);
report.Close();
dataSet.Clear();
private void button2_Click(object sender, EventArgs e)
for (int i = 0; i < 100; i++)
ProduceReport();
GC.Collect();
GC.WaitForPendingFinalizers();
GC.Collect();
MessageBox.Show("Done");
The rest of the app is simply a blank report, a blank typed dataset (with 1 table and 1 column - no data). That really is it
Is there anything else I can try?
Thanks! -
Hi,
I always get the following error. This happens every time I try to use Power Query to import data (even if I try to simply load a local CSV file).
I can select the CSV file, or chose the desired online-search data source, but when the data should be pulled into Excel, I get "Error handling an evaluation process request. Cannot create process. NativeErrorCode:193"
and I'm stuck.
I have already tried to:
execute Excel 2013 as Administrator
connect directly to Internet (without the company proxy)
Set “run as administrator” to all users on D:\Program Files (x86)\Microsoft Power Query for Excel\bin\Microsoft.Mashup.Container.exe
I'm running Windows 8 Pro (64 bit), Office 365 ProPlus (32 bit) and
PowerQuery_2.10.3598.81 (32-bit).
Any suggestions?
Thanks in advance,
MarcoAre you familiar with using tools like Process Monitor (aka procmon) for debugging? This error suggests to me that there's some kind of bad machine state that's interfering with the loading of the executable, and this kind of problem tends to be pretty hard
to debug.
Some of the easier things to do and check:
1) Run "chkdsk /f" against each of your drives to ensure there are no disk issues.
2) Enable tracing and send us the logs. There's a description for how to enable traces at
http://social.technet.microsoft.com/Forums/en-US/7b04152f-b7fb-46a9-92be-860d46b48059/when-error-says-see-the-inner-exception-for-more-details?forum=powerquery
3) Open up a command prompt (cmd.exe, not powershell), switch to "D:\Program Files (x86)\Microsoft Power Query for Excel\bin" and run Microsoft.Mashup.Container.exe to see if you get some kind of error message. The expected behavior of this application
is that it will exit almost right away with no error. -
Has anyone seen handle leaks in ODP.NET? I have a multi-threaded server application that contains managed and unmanaged C++ code and uses ODP.NET. It leaks handles that seem to be thread handles created by ODP.NET. I cannot reproduce it in a simple test. I am working on it, but it would be nice to know if anyone noticed the same problem and has a workaround or fix. This is a big problem in my app because the number of handles goes up to 10,000 in a couple of hours. GC.Collect does not help.
Thanks,
AlekseyYes, I know that. I do close and dispose everything. The behaviour is hard to reproduce, but it does happen.
One quick tip you can try is to explicitly close all
objects you created when no longer needed. For
example, call the Close/Dispose method on your your
ODP.NET connections, DataReaders, etc. objects before
you leave your applications scope. Sometimes the
.NET garbage collector cannot reclaim resources
quickly enough under heavily-loaded conditions.
Alex -
Camera Eventually stops connecting possibly caused by a handle leak
Can somebody tell me how to write an app that display a picture of the webcam on screen, change the size of video shown and remove it from the screen without the camera eventually not displaying and the created handles being left behind.
From my investigation any camera with the usbvideo.sys driver is affected, which will be at least 50% of webcams out there.
Sometimes air locks up and becomes unresponsive / sometimes it just stops displaying the camera, it depends upon the camera.
Tested with lots of different cameras on Windows 7 and 8 with lots of versions of the Air/Flex Frameworks.
Heres a simple app to test it.
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
creationComplete="windowedapplication1_creationCompleteHandler(event)">
<fx:Script>
<![CDATA[
import mx.collections.ArrayList;
import mx.events.FlexEvent;
import spark.events.IndexChangeEvent;
private var camera:Camera;
[Bindable]
private var cams:ArrayList;
private var video:Video;
[Bindable]
private var autoInProgress:Boolean;
[Bindable]
private var totalAttempts:int = 0;
private var currentAttempts:int = 0;
protected function windowedapplication1_creationCompleteHandler(event:FlexEvent):void
cams = new ArrayList(Camera.names);
protected function selectedCamera_changeHandler(event:IndexChangeEvent):void
camera = Camera.getCamera(selectedCamera.selectedIndex.toString());
if (camera)
camera.setMode(640, 480, 30);
private function start() : void {
currentAttempts = 0;
autoInProgress = true;
if (resizeTest.selected) {
addVideoAndAttachCamera();
resize();
else {
attachDetach();
private function addVideoAndAttachCamera() : void {
if (camera) {
video = new Video(camera.width, camera.height);
videoContainer.addChild(video);
video.attachCamera(camera);
private function detachCameraAndRemoveVideo() : void {
video.attachCamera(null);
video.clear();
videoContainer.removeChild(video);
video = null;
private function attachDetach() : void {
++ currentAttempts;
++ totalAttempts;
if (camera) {
addVideoAndAttachCamera();
memoryUsage.text = "System Memory Usage: " + (System.totalMemory).toString() + "bytes";
setTimeout(function():void {
detachCameraAndRemoveVideo();
if (currentAttempts < int(attempts.selectedItem)) {
attachDetach();
else {
autoInProgress = false;
}, int(delay.selectedItem));
private function resize() : void {
++ currentAttempts;
++ totalAttempts;
if (camera) {
camera.setMode(640, 480, 30);
memoryUsage.text = "System Memory Usage: " + (System.totalMemory).toString() + "bytes";
setTimeout(function():void {
if (currentAttempts < int(attempts.selectedItem)) {
resize();
else {
detachCameraAndRemoveVideo();
autoInProgress = false;
}, int(delay.selectedItem));
]]>
</fx:Script>
<s:VGroup>
<s:HGroup>
<s:Label enabled="{!autoInProgress}" text="Camera" />
<s:ComboBox enabled="{!autoInProgress}"
id="selectedCamera"
dataProvider="{cams}"
change="selectedCamera_changeHandler(event)"/>
<s:Label id="memoryUsage" />
<s:Label text="{totalAttempts}" />
</s:HGroup>
<s:HGroup>
<s:Label text="Auto Connect/Disconnect" enabled="{!autoInProgress}" />
<s:ComboBox id="attempts" enabled="{!autoInProgress}" selectedIndex="1">
<mx:ArrayCollection>
<fx:String>1</fx:String>
<fx:String>5</fx:String>
<fx:String>10</fx:String>
<fx:String>50</fx:String>
<fx:String>75</fx:String>
<fx:String>100</fx:String>
<fx:String>500</fx:String>
<fx:String>1000</fx:String>
<fx:String>5000</fx:String>
<fx:String>10000</fx:String>
</mx:ArrayCollection>
</s:ComboBox>
<s:Label text="times" enabled="{!autoInProgress}" />
<s:CheckBox id="resizeTest" label="Resize Test?" />
<s:Button enabled="{!autoInProgress}" click="start()" label="Start" />
</s:HGroup>
<s:HGroup>
<s:Label text="Delay" enabled="{!autoInProgress}" />
<s:ComboBox id="delay" enabled="{!autoInProgress}" selectedIndex="1">
<mx:ArrayCollection>
<fx:String>1000</fx:String>
<fx:String>1500</fx:String>
<fx:String>2000</fx:String>
<fx:String>3000</fx:String>
</mx:ArrayCollection>
</s:ComboBox>
</s:HGroup>
<mx:UIComponent id="videoContainer" width="640" height="480" />
</s:VGroup>
</s:WindowedApplication>
The resizeTest checkbox shows that you can make the camera lockup just by repetitively calling cam.setMode().
I have submitted a bug into the bugbase. Bug#3850401 - Handle leak with video.attachCamera leading to inoperable cameraAvrom,
I have never seeb this error before.
It certainly looks like an OC4J issue. Please try to get an answer on this in the OC4J forum.
Steven Davelaar,
JHeadstart Team. -
Jvm unnamed windows events handle leak 1.3.1_08-b03 - 1.4.2-b28
Hello,
I have an server application that leaks windows unnamed event handles on small loads. (200 network connections) I've used the process explorer from www.sysinternals.com to find the type of handles that where leaking. I've run my application through jprobe several times and i'm not leaking any java objects. it doesn't happen on every run. It can run about 5 to 10 times with no leak but as i continue running a request that has 200 network connnections it will leak one handle. Over time they add up memory increases and eventually we get a out of memory error and the server has to be restarted
My application uses the following
java version "1.3.1_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_08-b03)
Java HotSpot(TM) Client VM (build 1.3.1_08-b03, mixed mode)
windows server 2000 service pack 3 (I've tried sp1 and sp2 same issue)
starting and stopping threads
inet jdbc driver una2000
zlib compression libraries
encryption DES
sockets
no jni code
My network code uses input.available() and Socket.setSoTimeout() I don't think the setSoTimeOut time is timing anything out on these small runs.
I've also have run it with
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
I've tried not stopping any threads from my thread pool and it made no change. It still leaks! :-(
Does anyone know what creates the unamed event handles? Are they created by synchronization? Since my applications uses so many different api's it's like looking for a needle in a hay stack.
p.s. I've been working on this problem on and off for about 1 month. I've search the java forums and google.
Thanks
Alexander AnguianoMy message has been here for a while and is off the first page. :-( Oh, well. I thought I would update this just incase anyone was following it. (can I award my self those duke dollars?)
I think i've found the problem of why we are leaking handles. In the first 10 minutes it leaked 3 handles.(they may not have leaked but are resource that our application needed because of all the lazy initialization that we do) I've been runing a 200 task request every 5 minutes for the last 6 hours and have not leak any handles. The problem appears to be with calls to socket.setSoTimeout. I set it to 0. This effectively tells the socket to never time out. This is not an acceptable solution to the problem. I will be working on that next.
Has any one had problems with the socket.setSoTimeout?
If not then it may have to do with our simulated select. We have one thread that handles connection. Once the connection is established it's put on a list that get's polled [input.available()] that is handled by thread 2 if there is data then it gets handled by a worker thread [thread n-12]. Once the worker thread has read up to 4K of data it is put back on thread 2. I'm thinking that it has to do with so many thread doing a little work on it. -
Token Handle Leak in RDPShell.exe on 2012 R2 (does not occur in 2008)
I have several Terminal Services farms running both 2008 and 2012 R2.
Only those farms running 2012 exhibit the problem of excessive token handles in RDPShell.exe
On 2008, the handle count is around 210 (a mix of Desktop, Directory, ETWRegistration, Event, File, Key, Mutant, Process, Section, Thread, WindowStation).
However, on 2012 R2 (running the same client application) RDPShell leaks Token handles (with handle counts in the thousands). The current maximum handle count for RDPShell on one RDS server is 7620 handles...
Example below taken from ProcessHacker:
Token, CORPORATE\[LoggedOnUserName]: 0xda8e99c, 0x7644
Token, CORPORATE\[LoggedOnUserName]: 0xda8e99c, 0x764c
Token, CORPORATE\[LoggedOnUserName]: 0xda8e99c, 0x7650
Token, CORPORATE\[LoggedOnUserName]: 0xda8e99c, 0x7654
Token, CORPORATE\[LoggedOnUserName]: 0xda8e99c, 0x7658
Token, CORPORATE\[LoggedOnUserName]: 0xda8e99c, 0x765c
Token, CORPORATE\[LoggedOnUserName]: 0xda8e99c, 0x7660
Token, CORPORATE\[LoggedOnUserName]: 0xda8e99c, 0x7664
Token, CORPORATE\[LoggedOnUserName]: 0xda8e99c, 0x7668
Token, CORPORATE\[LoggedOnUserName]: 0xda8e99c, 0x766c
I would like to raise this as a Connect bug, however cannot see how to raise bugs on Connect for any Windows Operating systems.
Is anyone else experiencing similar?Hi Brett,
Thank you for posting in Windows Server Forum.
Can you let us know, with which application you are facing the leaking process?
There are certain scenario when you can face this error, which is occurring in server 2008 R2. You can check with
this article
for reference. According to that, it might occurs due to some allocated memory is not released correctly in the Rdpshell.exe process. Here you need to close all the running application and need to wait for some time and retry again to work back.
Hope it helps!
Thanks.
Dharmesh Solanki
TechNet Community Support -
We noticed in TestStand 4.1 that when we use "Call Executable" on a batch file:
with "no wait" it leaks a handle on each call
with other view options thatn "show minimized" it leaks GDI objects
We can work around the first issue by using CloseHandle (from kernel32.dll) on RunState.PreviousStep.ProcessHandle, but I would like to know whether these are known issues and are addressed in later versions of TS.
Best regards
PeterIn later versions of TestStand, the default behavior of a new callexecuteable step is to NOT store the process handle at all (instead it gets closed immediately). There is a setting for whether or not to store the handle and an expression to specify where to store it as shown below:
For the GDI object leak, are you seeing a leak in the TestStand process or is the GDI object leaking because the handle hasn't been closed yet, so the other process is still around and still using GDI objects? Does the GDI leak go away if you close the process handle? If you call callexecutable in a tight loop does the number of GDI objects grow unbounded or does it level off (i.e. is it really a leak or a one-time allocation)?
-Doug -
Handling Unit Managment Process flow
Hi all,
I am implementing Handling Unit Management currently. I am looking for; how does the business process flow change once HUM is activated.
So far, I got an idea:
GR process:
Purchase Order -> Goods Receipt (MIGO) -> ASN(Inbound Delivery) -> Pack & Create Handling Unit -> Post Goods Receipt(via the Inbound Delivery)
GI process:
Sales Order -> Outbound Delivery ->Pick & Pack(Handling Unit) -> Goods Issue
Please let me know if i am correct in my assumption.
Also, I would like to know how the stock is transferred from the stock stored in HU's in the warehouse to the stock which is to be delivered.
For example :
I store a material X in HU's in multiples of 500. I have to deliver to a customer around 100 pieces of X.
How do I go about unpacking the HU of 500, then creating 2 HU's (one with 400 pieces to be stored back in the warehouse, and the other HU of 100 pieces for the customer.)
Is it possible to do so ?
Or I need to create a separate storage location where I have to keep the partial unpacked 400 pieces ?
Anyone's help will be appreciated in this matter.
Thanks,
Shefalitry this
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/LOHU/LOHU.pdf -
Fault Handling in BPEL process
hi
We have to develop an application which involves several BPEL processes and proxy service(OSB) and JMS queue etc.
What is the difference between Fault Management Framework in SOA11g and normal fault handling(using catch and throw activities)?
which one we should prefer for fault handling in our application n why?
Plz help thanks in advance.Hi-
In Normal Fault handling process, you will be able to catch the faluts only but in Fault Management Framework if a fault occurs the framework catches the fault and performs a user-specified action defined in a fault policy file associated with the activity. You can also have a human intervention prescribed in it, where you perform recovery actions from Enterprise Manager.
Pls go throgh the below post for detailed description
http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10224/bp_faults.htm
Fault Management Framework and non BPEL soap faults
Edited by: 333333 on Mar 23, 2011 5:01 PM -
Message Handling in HCM Process and Forms
Hi,
I have added own messages logic
MESSAGE_HANDLER Type Ref To IF_HRBAS_MESSAGE_HANDLER
message_handler->add_message( message = message ).
in "DO_OPERATION" method of Generic Service in HCM process and Forms.
Problem : We have handled messages in method "DO_OPERATION" but when we click on NEXT push button (review and send)at mss level, same error messages is displayed for 2 times above the adobe form.
Same error messages are displayed as many times as we click on NEXT push button.
Need Solution : It is supposed to display only once.
Thank You,
Swetha.CHi Shweta,
Please check SY-UCOMM in both the cases.
1. After Selecting Position
2. After Clicking 'Next' Button.
If SY-UCOMM is different, Then Add message to Message_handler only when Position is selected.
That means If sy-ucomm = Position select User command
Then Add message to Message_handler.
endif.
'Else dont ADD'
Hope this helps.
Pradeep.
Maybe you are looking for
-
To givingupusa - a simple Encore Tutorial
To givingupusa - a simple Encore Tutorial I have CS5, so you need to go slowly to be sure you find the correct commands for your version of Premiere Pro and Encore This is for DVD only, since I don't do BluRay Verify these steps with the book or PDF
-
Airport Utility will not display any base stations.
I just had a new hard drive installed in my two year old MAC, since the last one crashed and have Mavericks installed. I have tried to un-install the application so I can re-intall a new one but the system will not let me. I am running a 5th generati
-
The iPhone app for Adobe Reader is automatically saving the form each time it is filled out. (Windows Adobe Reader does not do this.) This means that you have to manually clear each field before you can use the form again. Does anyone know a work-
-
Services to be checked after system restart for getting system status
Hi, We are trying to identify all the services that are to be checked before we confirm that a system is available. While performing a system status check on J2EE instances after restart of the system , after getting a respone on TELNET to the HTTP P
-
Hi, I tried to execute the J2ee tutorial example (ConverterApplication) bean... I got succeed in doing that... But while writing the ApplicationClient code i used PortableRemoteObject.narrow() to get the HomeObject's reference... I know that there is