[jboss-user] [JBoss Messaging] - Re: JMSServerControl.createQueue() fails when there are any

2009-08-06 Thread timfox
"clebert.suco...@jboss.com" wrote : 
  | You could set paging-max-global-size-bytes to something very close to your 
full memory. Say..if you have 1G memory. Put it 700MiB (700 * 1024 * 1024).
  | 

Actually, I would recommend keeping it at the default value of -1, and just 
specifying paging parameters at an address level.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248496#4248496

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4248496
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMSServerControl.createQueue() fails when there are any

2009-08-06 Thread jbmuser
Thanks Clebert.

Bijith

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248321#4248321

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4248321
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMSServerControl.createQueue() fails when there are any (Repost)

2009-08-05 Thread clebert.suco...@jboss.com
Global-page-size should be the size of the page files you use. Default should 
be 10MiB. And you would rarely need to change it. (Unless you changed the page 
sizes on paging).


paging-max-global-size-bytes is a hard limit that should protect your server 
from Out Of Memory Exception. The server will put everything into page mode 
when you hit that limit. The default is -1. (what means.. unprotected).


You could set paging-max-global-size-bytes to something very close to your full 
memory. Say..if you have 1G memory. Put it 700MiB (700 * 1024 * 1024).


We will document it property before the next release. (We have noticed that 
flaw on the docs.. as you could see on the dev forum)


[url]
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=159473[/url]

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248264#4248264

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4248264
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMSServerControl.createQueue() fails when there are any

2009-08-05 Thread clebert.suco...@jboss.com
Global-page-size should be the size of the page files you use. Default should 
be 10MiB. And you would rarely need to change it. (Unless you changed the page 
sizes on paging).


paging-max-global-size-bytes is a hard limit that should protect your server 
from Out Of Memory Exception. The server will put everything into page mode 
when you hit that limit. The default is -1. (what means.. unprotected).


You could set paging-max-global-size-bytes to something very close to your full 
memory. Say..if you have 1G memory. Put it 700MiB (700 * 1024 * 1024).


We will document it property before the next release. (We have noticed that 
flaw on the docs.. as you could see on the dev forum)

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248264#4248264

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4248264
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMSServerControl.createQueue() fails when there are any

2009-08-04 Thread jbmuser
Thanks Clebert. If I set the  for all addresses to 100MB, what 
should be my ? Should I keep that to default (-1), and what 
does -1 means? Does that mean, 'never go to paging mode'? I couldn't find 
anything in the documentation.

Thanks
Bijith

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248024#4248024

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4248024
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMSServerControl.createQueue() fails when there are any

2009-08-04 Thread clebert.suco...@jboss.com
You could set the max size at jbm-configuration.xml:


  |
  |   
  |   
  |  false
  |  jms.queue.DLQ
  |  jms.queue.ExpiryQueue
  |  0
  |  104857600
  |  10485760
  |  
org.jboss.messaging.core.server.impl.RoundRobinDistributor
  |  
10
  |   
  |
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247937#4247937

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247937
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMSServerControl.createQueue() fails when there are any

2009-08-04 Thread clebert.suco...@jboss.com
We created another dev thread about this:

http://www.jboss.org/index.html?module=bb&op=viewtopic&t=159473



Basically global-max-size means the hard limit you have on the server. It' s 
like a memory full, and it should put everything on file instead of memory.


For correct paging, you should have everything using individual addresses 
settings. 

And we will document that clearly.


So, JBMUser: Basically your test made the server "full" and nothing got routed 
after that, what should be the expected behaviour.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247936#4247936

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247936
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMSServerControl.createQueue() fails when there are any

2009-08-04 Thread timfox
"jmesnil" wrote : "clebert.suco...@jboss.com" wrote : 
  |   | In your case.. you have the server full. We can't route any more 
messages until DestinationA had messages being consumed and Acked.
  |   | 
  | 
  | I'm not sure I understand it. Why would I been able to consume from 
destinationA but not from destinationB?
  | When I hit the global page mode, I'm expecting to be able to consume from 
any queue. Otherwise, a single queue with no consumer could prevent to consume 
from any other queues (like the example). This seems wrong, no?
  | [/quote}
  | 
  | +1.
  | 
  | If global paging is "full" it shouldn't prevent destinations from being 
*consumed*, it should only prevent new messages being added into destinations 
in memory.
  | 
  | anonymous wrote : 
  |   | We can bypass paging for management or temp queues (even if I'd prefer 
not to) but this won't solve the issue highlighted by the example.
  |   | How can we make sure that when we hit the global page mode, a consumer 
can receive messages from any queue?
  | 
  | +1 again. If we solve the core issue here then having a special case for 
management won't be necessary

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247798#4247798

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247798
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMSServerControl.createQueue() fails when there are any

2009-08-04 Thread jmesnil
"clebert.suco...@jboss.com" wrote : 
  | In your case.. you have the server full. We can't route any more messages 
until DestinationA had messages being consumed and Acked.
  | 

I'm not sure I understand it. Why would I been able to consume from 
destinationA but not from destinationB?
When I hit the global page mode, I'm expecting to be able to consume from any 
queue. Otherwise, a single queue with no consumer could prevent to consume from 
any other queues (like the example). This seems wrong, no?

"clebert.suco...@jboss.com" wrote : 
  | For the management case.. I was suggesting to never page anything. But 
there is a risk of OME. (If we don't protect it). But as far as I know.. 
management destinations will aways be consumed or dropped. So.. I guess it 
would be ok to ignore paging on Management. Maybe the same would apply to 
temporary queues.

We can bypass paging for management or temp queues (even if I'd prefer not to) 
but this won't solve the issue highlighted by the example.
How can we make sure that when we hit the global page mode, a consumer can 
receive messages from any queue?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247797#4247797

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247797
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMSServerControl.createQueue() fails when there are any

2009-08-04 Thread timfox
"clebert.suco...@jboss.com" wrote : On the JMS example, the only bug I found 
was the second destination didn' t enter into page mode right away. What should 
be fixed. But that will mean the destination will enter into page mode right 
away, so it should fail at the first time.
  | 
  | In your case.. you have the server full. We can't route any more messages 
until DestinationA had messages being consumed and Acked.
  | 
  | 
  | So... what's happening is:
  | 
  | Client sends messages to destinationA.
  | At this point the server is Full.
  | 
  | Client sends messages to destinationB.
  | (At this point the server should still be full. DestinationB should page 
right away, and the consumer shouldn' t receive anything until messages from 
destinationA were received).
  | 

That's not the behaviour I would expect.

I would expect destinationB to be depaged too - since it's just going to be 
consumed anyway.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247766#4247766

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247766
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMSServerControl.createQueue() fails when there are any

2009-08-03 Thread clebert.suco...@jboss.com
On the JMS example, the only bug I found was the second destination didn' t 
enter into page mode right away. What should be fixed. But that will mean the 
destination will enter into page mode right away, so it should fail at the 
first time.

In your case.. you have the server full. We can't route any more messages until 
DestinationA had messages being consumed and Acked.


So... what's happening is:

Client sends messages to destinationA.
At this point the server is Full.

Client sends messages to destinationB.
(At this point the server should still be full. DestinationB should page right 
away, and the consumer shouldn' t receive anything until messages from 
destinationA were received).




For the management case.. I was suggesting to never page anything. But there is 
a risk of OME. (If we don't protect it). But as far as I know.. management 
destinations will aways be consumed or dropped. So.. I guess it would be ok to 
ignore paging on Management. Maybe the same would apply to temporary queues.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247699#4247699

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247699
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMSServerControl.createQueue() fails when there are any

2009-08-03 Thread jmesnil
I've managed to reproduce the issue using only JMS API (no management code).
It seems the problem is related to global depaging.

The code to show the problem is SenderWithoutManagement attached to 
https://jira.jboss.org/jira/browse/JBMESSAGING-1695 and the settings in 
jbm-configuration.xml:

  | 10485760 
  | 104857600 
  | 

The example does the steps:
1/ ceate a temp queue
2/ create a consumer for the temp queue
3/ send a message on the temp queue
4/ consume the message from the temp queue using the consumer

5/ send 5 messages on *another queue*

6/ send a message on the temp queue
7/ consume the message from the temp queue using the consumer open at #2

The 1st time, the example runs fine.
The 2nd time, step #7 fails as the consumer does not receive a message from the 
consumer

Even if I increase the number of messages sent to another queue e.g. to 40, 
the issue appears only on the 2nd run.

This is similar to the issue reported by the user as the management code used 
internally a client consumer which is used for the lifespan of the messaging 
server.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247623#4247623

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247623
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMSServerControl.createQueue() fails when there are any

2009-08-02 Thread timfox
I'm not sure I fully understand what is going on here - if the management reply 
is paged, then won't it get depaged when it is consumed?


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247422#4247422

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247422
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMSServerControl.createQueue() fails when there are any

2009-07-31 Thread clebert.suco...@jboss.com
Hmmm...

I' m not sure if we should page temporary destinations also.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247319#4247319

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247319
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMSServerControl.createQueue() fails when there are any

2009-07-31 Thread jmesnil
"clebert.suco...@jboss.com" wrote : IMO the management address shouldn' t be 
paged (ever).

You're right.

If I bypass paging for management message in PostOfficeImpl.route(), the issue 
disappears.
However, the message which is paged is the *reply* containing the operation 
result. It is not routed to the management address but (generally) to a 
temporary address. This means I can't use the message destination to bypass 
paging as it is not the management address.
The only way to know if the message corresponds to a management message is to 
lookup for a well-known property.
But this is not optimal as I don't want to lookup every message while only 
management message should never be paged.

So, I added a "pagingEnabled" boolean parameter to PostOffice.route().
When a *management message* is routed, I set it to false. Otherwise, it is 
true. 
Then, in the route() method, I wrapped the paging code in a if(pagingEnabled) 
block.

This avoids to do any lookup to check if the message is a management message or 
not but it clutters a little bit the PostOffice API.

wdyt?



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247312#4247312

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247312
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMSServerControl.createQueue() fails when there are any

2009-07-31 Thread clebert.suco...@jboss.com
IMO the management address shouldn' t be paged (ever).


You would only be able to depage, when the memory is freed up.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247279#4247279

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247279
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMSServerControl.createQueue() fails when there are any

2009-07-31 Thread jmesnil
i have been able to reproduce the issue.
Once the gobal-page-size is reached, the management message is paged  (fyi, 
internally the mbean uses a Core message to invoke the management operation to 
ensure replication over a cluster).
However, it should be depaged when the mbean tries to receive the management 
message using the ReplicationOperationInvoker

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247262#4247262

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247262
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMSServerControl.createQueue() fails when there are any

2009-07-30 Thread jbmuser
Added in JIRA https://jira.jboss.org/jira/browse/JBMESSAGING-1695

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247153#4247153

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247153
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user