<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16450">
<STYLE>
@font-face {
        font-family: SimSun;
}
@font-face {
        font-family: SimSun;
}
@font-face {
        font-family: Calibri;
}
@font-face {
        font-family: Tahoma;
}
@font-face {
        font-family: @SimSun;
}
@page WordSection1 {size: 612.0pt 792.0pt; margin: 72.0pt 72.0pt 72.0pt 72.0pt; }
P.MsoNormal {
        FONT-FAMILY: SimSun; MARGIN-LEFT: 0cm; FONT-SIZE: 12pt; MARGIN-RIGHT: 0cm; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-fareast-language: ZH-CN; mso-believe-normal-left: yes
}
LI.MsoNormal {
        FONT-FAMILY: SimSun; MARGIN-LEFT: 0cm; FONT-SIZE: 12pt; MARGIN-RIGHT: 0cm; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-fareast-language: ZH-CN; mso-believe-normal-left: yes
}
DIV.MsoNormal {
        FONT-FAMILY: SimSun; MARGIN-LEFT: 0cm; FONT-SIZE: 12pt; MARGIN-RIGHT: 0cm; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-fareast-language: ZH-CN; mso-believe-normal-left: yes
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
P {
        MARGIN: 0px 0cm; FONT-FAMILY: SimSun; FONT-SIZE: 12pt; mso-fareast-language: ZH-CN; mso-style-priority: 99
}
SPAN.EmailStyle18 {
        FONT-FAMILY: "Calibri","sans-serif"; COLOR: #1f497d; mso-style-type: personal-reply
}
.MsoChpDefault {
        FONT-SIZE: 10pt; mso-style-type: export-only
}
DIV.WordSection1 {
        page: WordSection1
}
DIV.FoxDiv20121106132248964811 {
        MARGIN: 7.5pt; COLOR: #000000
}
BODY {
        LINE-HEIGHT: 1.5; FONT-FAMILY: Segoe UI; COLOR: #000080; FONT-SIZE: 10.5pt
}
</STYLE>
<![if mso 9]><style>p.MsoNormal
        {margin-left:7.5pt;}
</style><![endif]><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<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
}
</STYLE>
</HEAD>
<BODY style="MARGIN: 10px" lang=EN-AU vLink=purple link=blue>
<DIV>Dear Luke,</DIV>
<DIV> </DIV>
<DIV>Thanks for your reply. It is a 32-bit processes. </DIV>
<DIV> </DIV>
<DIV>Sorry to tell you my analysis early. Last Saturday I found our Corba
server application has a large sum of unusable memory through vmmap
tool, it amounts to 1.2G. After investigation, I found it is due to auti-virus
software I installed, the software seems monitor and tag the memory
allocation of every user mode process.</DIV>
<DIV> </DIV>
<DIV>Anyway, thanks you very much.</DIV>
<DIV> </DIV>
<DIV>Regards</DIV>
<DIV> </DIV>
<DIV>Xinsong</DIV>
<DIV> </DIV>
<DIV
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<DIV
style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; COLOR: #000000; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>From:</B> <A href="mailto:ldeller@iress.com.au">Luke
Deller</A></DIV>
<DIV><B>Date:</B> 2012-11-06 13:12</DIV>
<DIV><B>To:</B> <A href="mailto:xsxia001@sohu.com">'xsxia001'</A></DIV>
<DIV><B>CC:</B> <A
href="mailto:omniorb-list@omniorb-support.com">'omniorb-list'</A></DIV>
<DIV><B>Subject:</B> RE: [omniORB] Why not create a thread ---
LastStatusValue: (NTSTATUS) 0xc0000017</DIV></DIV></DIV>
<DIV>
<DIV class=FoxDiv20121106132248964811>
<META name=Generator content="Microsoft Word 14 (filtered medium)">
<STYLE>@font-face {
        font-family: SimSun;
}
@font-face {
        font-family: SimSun;
}
@font-face {
        font-family: Calibri;
}
@font-face {
        font-family: Tahoma;
}
@font-face {
        font-family: @SimSun;
}
@page WordSection1 {size: 612.0pt 792.0pt; margin: 72.0pt 72.0pt 72.0pt 72.0pt; }
P.MsoNormal {
        FONT-FAMILY: SimSun; MARGIN-LEFT: 0cm; FONT-SIZE: 12pt; MARGIN-RIGHT: 0cm; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-fareast-language: ZH-CN; mso-believe-normal-left: yes
}
LI.MsoNormal {
        FONT-FAMILY: SimSun; MARGIN-LEFT: 0cm; FONT-SIZE: 12pt; MARGIN-RIGHT: 0cm; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-fareast-language: ZH-CN; mso-believe-normal-left: yes
}
DIV.MsoNormal {
        FONT-FAMILY: SimSun; MARGIN-LEFT: 0cm; FONT-SIZE: 12pt; MARGIN-RIGHT: 0cm; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-fareast-language: ZH-CN; mso-believe-normal-left: yes
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
P {
        MARGIN: 0cm 0cm 0pt; FONT-FAMILY: SimSun; FONT-SIZE: 12pt; mso-fareast-language: ZH-CN; mso-style-priority: 99
}
SPAN.EmailStyle18 {
        FONT-FAMILY: "Calibri","sans-serif"; COLOR: #1f497d; mso-style-type: personal-reply
}
.MsoChpDefault {
        FONT-SIZE: 10pt; mso-style-type: export-only
}
DIV.WordSection1 {
        page: WordSection1
}
</STYLE>
<![if mso 9]><style>p.MsoNormal
        {margin-left:7.5pt;}
</style><![endif]><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<DIV class=WordSection1>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Hi
Xinsong,<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Are
using 32-bit processes? They may be running out of virtual address space
due to the large number of threads created, each of which requires a certain
amount of virtual address space for its stack.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">I
would suggest you investigate the options for configuring omniORB¡¯s use of
threads; see:<BR><A
href="http://omniorb.sourceforge.net/omni41/omniORB/omniORB008.html#toc40">http://omniorb.sourceforge.net/omni41/omniORB/omniORB008.html#toc40</A><o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Regards,<BR>Luke.<o:p></o:p></SPAN></P>
<DIV>
<DIV
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"
lang=EN-US>From:</SPAN></B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt" lang=EN-US> xinsong
xia [mailto:xsxia001@sohu.com] <BR><B>Sent:</B> Thursday, 1 November 2012 5:05
PM<BR><B>To:</B> omniorb-list<BR><B>Subject:</B> [omniORB] Why not create a
thread --- LastStatusValue: (NTSTATUS)
0xc0000017<o:p></o:p></SPAN></P></DIV></DIV>
<P class=MsoNormal><o:p> </o:p></P>
<DIV>
<P
style="MARGIN-BOTTOM: 10pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; mso-margin-top-alt: 0cm"
class=MsoNormal><SPAN style="COLOR: black">Dear Sir/Madam:<o:p></o:p></SPAN></P>
<P
style="MARGIN-BOTTOM: 10pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; mso-margin-top-alt: 0cm"
class=MsoNormal><A name=OLE_LINK1></A><A name=OLE_LINK2><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black">Excuse me, need your
help urgently.</SPAN><SPAN style="COLOR: black"><o:p></o:p></SPAN></A></P>
<P
style="MARGIN-BOTTOM: 10pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; mso-margin-top-alt: 0cm"
class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black">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:</SPAN><SPAN
style="COLOR: black"><o:p></o:p></SPAN></P>
<P
style="MARGIN-BOTTOM: 10pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; mso-margin-top-alt: 0cm"
class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black">LastErrorValue:
(Win32) 0x8 (8) - Not enough storage is available to process this
command.</SPAN><SPAN style="COLOR: black"><o:p></o:p></SPAN></P>
<P
style="MARGIN-BOTTOM: 10pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; mso-margin-top-alt: 0cm"
class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black">LastStatusValue:
(NTSTATUS) 0xc0000017 - {Not Enough Quota} Not enough virtual memory or
paging file quota is available to complete the specified operation.</SPAN><SPAN
style="COLOR: black"><o:p></o:p></SPAN></P>
<P
style="MARGIN-BOTTOM: 10pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; mso-margin-top-alt: 0cm"
class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black">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.</SPAN><SPAN style="COLOR: black"><o:p></o:p></SPAN></P>
<P
style="MARGIN-BOTTOM: 10pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; mso-margin-top-alt: 0cm"
class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black">After the failure, I
could create more than 100 threads in other application by calling the function
</SPAN><SPAN style="COLOR: black" lang=ZH-CN>¡°</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black">_beginthreadex</SPAN><SPAN
style="COLOR: black" lang=ZH-CN>¡±</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black">. </SPAN><SPAN
style="COLOR: black"><o:p></o:p></SPAN></P>
<P
style="MARGIN-BOTTOM: 10pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; mso-margin-top-alt: 0cm"
class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black">Furthermore, for the
server application, running as "Administrator", the memory used is 36M, the
thread count is 633, the handle count is 1535. For the whole system, the
CPU, resource is normal as ever. </SPAN><SPAN
style="COLOR: black"><o:p></o:p></SPAN></P>
<P
style="MARGIN-BOTTOM: 10pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; mso-margin-top-alt: 0cm"
class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black">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.</SPAN><SPAN
style="COLOR: black"><o:p></o:p></SPAN></P>
<P
style="MARGIN-BOTTOM: 10pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; mso-margin-top-alt: 0cm"
class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black">The question has
almost driven me crazy, could you give me some advice?</SPAN><SPAN
style="COLOR: black"><o:p></o:p></SPAN></P>
<P
style="MARGIN-BOTTOM: 10pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; mso-margin-top-alt: 0cm"
class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black">Thanks</SPAN><SPAN
style="COLOR: black"><o:p></o:p></SPAN></P>
<P
style="MARGIN-BOTTOM: 10pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; mso-margin-top-alt: 0cm"
class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black">xinsong</SPAN><SPAN
style="COLOR: black"><o:p></o:p></SPAN></P>
<P
style="MARGIN-BOTTOM: 10pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; mso-margin-top-alt: 0cm"
class=MsoNormal><SPAN
style="COLOR: black"> <o:p></o:p></SPAN></P></DIV></DIV><FONT
face=monospace>**********************************************************************************************<BR>Important
Note<BR>This email (including any attachments) contains information which is
confidential and may be subject to legal privilege. If you are not the
intended recipient you must not use, distribute or copy this email. If you
have received this email in error please notify the<BR>sender immediately and
delete this email. Any views expressed in this email are not necessarily the
views of IRESS Limited.<BR><BR>It is the duty of the recipient to virus scan and
otherwise test the information provided before loading onto any computer
system.<BR>IRESS Limited does not warrant that the information is free of a
virus or any other defect or
error.<BR>**********************************************************************************************</FONT>
</DIV></DIV></BODY></HTML>