You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Gordon Sim <gs...@redhat.com> on 2010/12/01 14:01:03 UTC

Re: error Could not accept socket: Too many open files

On 12/01/2010 12:57 PM, Steve Huston wrote:
> I agree that bumping the nofile limit should get around the error. But,
> first consider if you expected that you'd need over 1000 sockets open.
> If you expected you'd be using far fewer than that, then looking for
> that problem is more important.

Note that if you are using the AIO based persistent store  for linux 
then you will also unfortunately use up a minimum of 4 filehandles  per 
durable queue.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: Timer callback overran

Posted by Alan Conway <ac...@redhat.com>.
On 12/02/2010 11:27 AM, Barys_Ilyushonak@troika.ru wrote:
> Greetings.
>
> Could you please help me with the following warning message on c++ qpid
> broker 0.7 verson? We use java client in this example.
>
> 2010-12-02 19:25:05 warning Timer callback overran by 2ms [taking 21000ns]
> 2010-12-02 19:25:05 warning Timer callback overran by 2ms [taking 4000ns]
> 2010-12-02 19:25:05 warning Timer callback overran by 2ms [taking 3000ns]
> 2010-12-02 19:25:06 warning Timer callback overran by 2ms [taking 8000ns]
> 2010-12-02 19:25:06 warning Timer callback overran by 2ms [taking 3000ns]
>
> What does it mean and how can I fix it?
>

The excessively large numbers of timer warnings has been fixed on trunk and in 
0.8 release. They are due to heavy use of timers in some parts of the code base 
and seem to be harmless once the volume of the warnings is turned down.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Qipd .net client trouble

Posted by Adam Kaminiecki <ad...@dgt.com.pl>.
Hi,


Can anybody explain me why I get en error in this code line??

Client connections = new Client();


and exception

System.TypeInitializationException was unhandled
Message="Inicjator typów zgłosił wyjątek dla typu 
'org.apache.qpid.client.Client'."
Source="qpid.client"
TypeName="org.apache.qpid.client.Client"
StackTrace:
w org.apache.qpid.client.Client..ctor()
w AMQPClient.QpidClient..ctor(String host, Int32 port) w 
C:\Users\adamka\Documents\Visual Studio 
2008\Projects\RabbitMQ\Rabbit\AMQPClient\QpidClient.cs:wiersz 40
w rabbitwindow.Form1.QpidConnect_Click(Object sender, EventArgs e) w 
C:\Users\adamka\Documents\Visual Studio 
2008\Projects\RabbitMQ\Rabbit\rabbitwindow\Form1.cs:wiersz 272
w System.Windows.Forms.Control.OnClick(EventArgs e)
w System.Windows.Forms.Button.OnClick(EventArgs e)
w System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
w System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons 
button, Int32 clicks)
w System.Windows.Forms.Control.WndProc(Message& m)
w System.Windows.Forms.ButtonBase.WndProc(Message& m)
w System.Windows.Forms.Button.WndProc(Message& m)
w System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
w System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
w System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, 
Int32 msg, IntPtr wparam, IntPtr lparam)
w System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
w 
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 
dwComponentID, Int32 reason, Int32 pvLoopData)
w 
System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 
reason, ApplicationContext context)
w System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 
reason, ApplicationContext context)
w System.Windows.Forms.Application.Run(Form mainForm)
w rabbitwindow.Program.Main() w C:\Users\adamka\Documents\Visual Studio 
2008\Projects\RabbitMQ\Rabbit\rabbitwindow\Program.cs:wiersz 17
w System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
w System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence 
assemblySecurity, String[] args)
w Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
w System.Threading.ThreadHelper.ThreadStart_Context(Object state)
w System.Threading.ExecutionContext.Run(ExecutionContext 
executionContext, ContextCallback callback, Object state)
w System.Threading.ThreadHelper.ThreadStart()
InnerException: System.IO.FileNotFoundException
Message="Nie można załadować pliku lub zestawu 'log4net, 
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' lub 
jednej z jego zależności. Nie można odnaleźć określonego pliku."
Source="qpid.client"
FileName="log4net, Version=1.2.10.0, Culture=neutral, 
PublicKeyToken=1b44e1d426115821"
FusionLog="=== Informacje o stanie sprzed powiązania ===\r\nDZIENNIK: 
User = OLIMP\\adamka\r\nDZIENNIK: DisplayName = log4net, 
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821\n 
(Fully-specified)\r\nDZIENNIK: Appbase = 
file:///C:/Users/adamka/Documents/Visual Studio 
2008/Projects/RabbitMQ/Rabbit/rabbitwindow/bin/x86/Debug/\r\nDZIENNIK: 
Initial PrivatePath = NULL\r\nZestaw wywołujący: qpid.client, 
Version=0.5.0.0, Culture=neutral, 
PublicKeyToken=null.\r\n===\r\nDZIENNIK: to powiązanie zaczyna się w 
kontekście ładowania default.\r\nDZIENNIK: nie znaleziono pliku 
konfiguracyjnego aplikacji.\r\nDZIENNIK: użycie pliku konfiguracyjnego 
komputera z 
C:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727\\config\\machine.config.\r\nDZIENNIK: 
odwołanie po zastosowaniu zasad: log4net, Version=1.2.10.0, 
Culture=neutral, PublicKeyToken=1b44e1d426115821\r\nDZIENNIK: prba 
pobrania nowego adresu URL file:///C:/Users/adamka/Documents/Visual 
Studio 
2008/Projects/RabbitMQ/Rabbit/rabbitwindow/bin/x86/Debug/log4net.DLL.\r\nDZIENNIK: 
prba pobrania nowego adresu URL file:///C:/Users/adamka/Documents/Visual 
Studio 
2008/Projects/RabbitMQ/Rabbit/rabbitwindow/bin/x86/Debug/log4net/log4net.DLL.\r\nDZIENNIK: 
prba pobrania nowego adresu URL file:///C:/Users/adamka/Documents/Visual 
Studio 
2008/Projects/RabbitMQ/Rabbit/rabbitwindow/bin/x86/Debug/log4net.EXE.\r\nDZIENNIK: 
prba pobrania nowego adresu URL file:///C:/Users/adamka/Documents/Visual 
Studio 
2008/Projects/RabbitMQ/Rabbit/rabbitwindow/bin/x86/Debug/log4net/log4net.EXE.\r\n"
StackTrace:
w org.apache.qpid.transport.util.Logger.Get(Type type)
w org.apache.qpid.client.Client..cctor()
InnerException:


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: Stating Qpid on Windows

Posted by Lahiru Gunathilake <gl...@gmail.com>.
Hi Adam,

Build qpid/python and set PYTHONPATH to qpid/python directory and go to
command and run qpid-stat --help and see the options.

By using python script in that directory you will be able to create queues,
monitor queues etc.

Thanks
Lahiru

On Fri, Dec 3, 2010 at 2:15 AM, Adam Kaminiecki <ad...@dgt.com.pl> wrote:

> Ok, thanks it's working:) but now how can i check connections,queues etc?
> and how can i stop it??
>
> W dniu 2010-12-02 21:30, Steve Huston pisze:
>
>  Hi Adam,
>>
>>  I have  a problem with starting Qpid server on Windows. I'm trying to
>>> run it as administrator but  get error
>>> Cannot create directory \temp\qupid
>>>
>>> Where I need to change path for data??
>>>
>> You can use the --data-dir option (see qpidd --help)
>>
>> -Steve
>>
>> --
>> Steve Huston, Riverace Corporation
>> Total Lifecycle Support for Your Networked Applications
>> http://www.riverace.com
>>
>>
>> ---------------------------------------------------------------------
>> Apache Qpid - AMQP Messaging Implementation
>> Project:      http://qpid.apache.org
>> Use/Interact: mailto:users-subscribe@qpid.apache.org
>>
>>
>>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
>

Re: Stating Qpid on Windows

Posted by Adam Kaminiecki <ad...@dgt.com.pl>.
Ok, thanks it's working:) but now how can i check connections,queues 
etc? and how can i stop it??

W dniu 2010-12-02 21:30, Steve Huston pisze:
> Hi Adam,
>
>> I have  a problem with starting Qpid server on Windows. I'm trying to
>> run it as administrator but  get error
>> Cannot create directory \temp\qupid
>>
>> Where I need to change path for data??
> You can use the --data-dir option (see qpidd --help)
>
> -Steve
>
> --
> Steve Huston, Riverace Corporation
> Total Lifecycle Support for Your Networked Applications
> http://www.riverace.com
>
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
>

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


RE: Stating Qpid on Windows

Posted by Steve Huston <sh...@riverace.com>.
Hi Adam,

> I have  a problem with starting Qpid server on Windows. I'm trying to 
> run it as administrator but  get error
> Cannot create directory \temp\qupid
> 
> Where I need to change path for data??

You can use the --data-dir option (see qpidd --help)

-Steve

--
Steve Huston, Riverace Corporation
Total Lifecycle Support for Your Networked Applications
http://www.riverace.com


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Stating Qpid on Windows

Posted by Adam Kaminiecki <ad...@dgt.com.pl>.
Hi,

I have  a problem with starting Qpid server on Windows. I'm trying to 
run it as administrator but  get error
Cannot create directory \temp\qupid

Where I need to change path for data??


Regards,
Adam


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Timer callback overran

Posted by Ba...@troika.ru.
Greetings.

Could you please help me with the following warning message on c++ qpid 
broker 0.7 verson? We use java client in this example.

2010-12-02 19:25:05 warning Timer callback overran by 2ms [taking 21000ns]
2010-12-02 19:25:05 warning Timer callback overran by 2ms [taking 4000ns]
2010-12-02 19:25:05 warning Timer callback overran by 2ms [taking 3000ns]
2010-12-02 19:25:06 warning Timer callback overran by 2ms [taking 8000ns]
2010-12-02 19:25:06 warning Timer callback overran by 2ms [taking 3000ns]

What does it mean and how can I fix it?

Regards,
Boris
_______________________________________________________

The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. 
If you need assistance please contact our Contact Center  (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp  


Re: error Could not accept socket: Too many open files

Posted by Ba...@troika.ru.
Thank you for the good explanation.
How is it possible to research the issue with ulimits? How can I 
determine, why my system use more than 1024 open file descritors/sockets?
I know the queue count, and I suppose I can monitor (with qpid-stat) the 
connections to the broker. In general I use about 20 queues and 20 
connections.




Gordon Sim <gs...@redhat.com> 
02.12.2010 01:35
Please respond to
users@qpid.apache.org


To
users@qpid.apache.org
cc

Subject
Re: error Could not accept socket: Too many open files






On 12/01/2010 05:41 PM, Carl Trieloff wrote:
> On 12/01/2010 08:01 AM, Gordon Sim wrote:
>> On 12/01/2010 12:57 PM, Steve Huston wrote:
>>> I agree that bumping the nofile limit should get around the error. 
But,
>>> first consider if you expected that you'd need over 1000 sockets open.
>>> If you expected you'd be using far fewer than that, then looking for
>>> that problem is more important.
>>
>> Note that if you are using the AIO based persistent store for linux
>> then you will also unfortunately use up a minimum of 4 filehandles per
>> durable queue.
>
>
> that per say is not an issue, you just need to set your ulimits.

Indeed; I'm just explaining that expectations around the number of open 
sockets is not the only question when considering why the limit was 
reached.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org



_______________________________________________________

The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. 
If you need assistance please contact our Contact Center  (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp  


Re: error Could not accept socket: Too many open files

Posted by Gordon Sim <gs...@redhat.com>.
On 12/01/2010 05:41 PM, Carl Trieloff wrote:
> On 12/01/2010 08:01 AM, Gordon Sim wrote:
>> On 12/01/2010 12:57 PM, Steve Huston wrote:
>>> I agree that bumping the nofile limit should get around the error. But,
>>> first consider if you expected that you'd need over 1000 sockets open.
>>> If you expected you'd be using far fewer than that, then looking for
>>> that problem is more important.
>>
>> Note that if you are using the AIO based persistent store for linux
>> then you will also unfortunately use up a minimum of 4 filehandles per
>> durable queue.
>
>
> that per say is not an issue, you just need to set your ulimits.

Indeed; I'm just explaining that expectations around the number of open 
sockets is not the only question when considering why the limit was reached.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: error Could not accept socket: Too many open files

Posted by Carl Trieloff <cc...@redhat.com>.
On 12/01/2010 08:01 AM, Gordon Sim wrote:
> On 12/01/2010 12:57 PM, Steve Huston wrote:
>> I agree that bumping the nofile limit should get around the error. But,
>> first consider if you expected that you'd need over 1000 sockets open.
>> If you expected you'd be using far fewer than that, then looking for
>> that problem is more important.
>
> Note that if you are using the AIO based persistent store  for linux 
> then you will also unfortunately use up a minimum of 4 filehandles  
> per durable queue. 


that per say is not an issue, you just need to set your ulimits.

Carl.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org