<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
        LINE-HEIGHT: 1.5; FONT-FAMILY: Segoe UI; COLOR: #000000; FONT-SIZE: 10.5pt
}
</STYLE>
<META name=GENERATOR content="MSHTML 9.00.8112.16450"></HEAD>
<BODY style="MARGIN: 10px">
<DIV><SPAN>
<P style="MARGIN: 0in 0in 10pt" class=MsoNormal>Dear Sir/Madam:</P>
<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><A name=OLE_LINK1><SPAN
style="mso-bookmark: OLE_LINK2"><FONT size=3 face=Calibri>Excuse me, need your
help urgently.</FONT></SPAN></A></P>
<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><SPAN
style="mso-bookmark: OLE_LINK1"><SPAN style="mso-bookmark: OLE_LINK2"><FONT
size=3 face=Calibri>I'm testing an application which is a Corba server based on
OmniORB 4.1.6 running on Windows 7. It is developed by VS 20008. During
this stress test, some Corba client applications will do some operations
randomly, such as connect to Corba server, send requests to Corba server,
disconnect from Corba server. After running about two weeks, then Corba server
application will fail to create thread by calling function _beginthreadex. The
last error is as follows:</FONT></SPAN></SPAN></P>
<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><SPAN
style="mso-bookmark: OLE_LINK1"><SPAN style="mso-bookmark: OLE_LINK2"><FONT
size=3 face=Calibri>LastErrorValue: (Win32) 0x8 (8) - Not enough storage is
available to process this command.</FONT></SPAN></SPAN></P>
<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><SPAN
style="mso-bookmark: OLE_LINK1"><SPAN style="mso-bookmark: OLE_LINK2"><FONT
size=3 face=Calibri>LastStatusValue: (NTSTATUS) 0xc0000017 - {Not Enough
Quota}<SPAN style="mso-spacerun: yes"> </SPAN>Not enough virtual memory or
paging file quota is available to complete the specified
operation.</FONT></SPAN></SPAN></P>
<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><SPAN
style="mso-bookmark: OLE_LINK1"><SPAN style="mso-bookmark: OLE_LINK2"><FONT
size=3 face=Calibri>For my knowledge, when Corba client send a request to server
application, the server application will create a thread to service the request.
After completion, the thread will be recycled.</FONT></SPAN></SPAN></P>
<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><SPAN
style="mso-bookmark: OLE_LINK1"><SPAN style="mso-bookmark: OLE_LINK2"><FONT
size=3 face=Calibri>After the failure, I could create more than 100 threads in
other application by calling the function ˇ°_beginthreadexˇ±.
</FONT></SPAN></SPAN></P>
<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><SPAN
style="mso-bookmark: OLE_LINK1"><SPAN style="mso-bookmark: OLE_LINK2"><FONT
size=3 face=Calibri>Furthermore, for the server application, running as
"Administrator", the memory used is 36M, the thread count is 633, the handle
count is 1535. <SPAN style="mso-spacerun: yes"> </SPAN>For the whole
system, the CPU, resource is normal as ever. </FONT></SPAN></SPAN></P>
<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><SPAN
style="mso-bookmark: OLE_LINK1"><SPAN style="mso-bookmark: OLE_LINK2"><FONT
size=3 face=Calibri>To my strange, after the first failure, when I restart the
Corba server application again, the failure could be reproduced quite soon,
maybe need 3-8 hours.</FONT></SPAN></SPAN></P>
<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><SPAN
style="mso-bookmark: OLE_LINK1"><SPAN style="mso-bookmark: OLE_LINK2"><FONT
size=3 face=Calibri>The question has almost driven me crazy, could you give me
some advice?</FONT></SPAN></SPAN></P>
<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><SPAN
style="mso-bookmark: OLE_LINK1"><SPAN style="mso-bookmark: OLE_LINK2"><FONT
size=3 face=Calibri>Thanks</FONT></SPAN></SPAN></P>
<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><SPAN
style="mso-bookmark: OLE_LINK1"><SPAN style="mso-bookmark: OLE_LINK2"><FONT
size=3 face=Calibri>xinsong</FONT></SPAN></SPAN></P>
<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><SPAN
style="mso-bookmark: OLE_LINK1"><SPAN style="mso-bookmark: OLE_LINK2"><FONT
size=3
face=Calibri></FONT></SPAN></SPAN> </P><!--EndFragment--></SPAN></DIV></BODY></HTML>