[ANN] JBND Update

2008-03-26 Thread Florijan Stamenkovic

New release of JBND available.

Release notes:
http://web.mac.com/flor385/JBND/news.html

Flor
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Temporarily deaf instances

2008-03-26 Thread Mike Schrag
You can try turning on -verbose:gc ... It dumps HUGE amounts of  
output, but you might beable to see a bunch of output dumping (or a  
large GC size change) right around this pause time.


The format of the output is [GC sizebeforegc->sizeaftergc(memory  
available), time it took to happen]


ms

On Mar 26, 2008, at 5:11 PM, Gary Teter wrote:


On Mar 26, 2008, at 2:00 PM, Mike Schrag wrote:
I wonder if jstack has to pause the VM to get a thread dump or  
something?  Maybe these are red herrings?  If you jstack them when  
they're NOT in this stack, do they say BLOCKED?


In a non-borked instance, most worker threads are blocked, but a few  
are doing something. Those are usually IN_NATIVE.




Also, when it's in this state and you do TWO jstacks a little bit  
apart in time, are there changes or is it like the VM is frozen in  
time?


No changes according to diff.




ms

On Mar 26, 2008, at 4:56 PM, Gary Teter wrote:




n Mar 26, 2008, at 1:39 PM, Mike Schrag wrote:


Where are those threads blocked?  Most will be blocked waiting  
for incoming web requests, i assume.  Are there are threads  
blocked anywhere other than chilling in their WorkThread wait  
state?


Can you hit the direct connect port during this time?

ms


Yes, many worker threads are normally blocked waiting for incoming  
requests (on a normal, undeaf instance), but normally you'll see  
at least one or more threads that are actually doing something,  
e.g.:


Ordinary worker thread waiting:

Thread [EMAIL PROTECTED]: (state = BLOCKED)
- java.net.PlainSocketImpl.accept(java.net.SocketImpl) @bci=0,  
line=382 (Interpreted frame)
- java.net.ServerSocket.implAccept(java.net.Socket) @bci=50,  
line=450 (Interpreted frame)
- java.net.ServerSocket.accept() @bci=48, line=421 (Interpreted  
frame)
- com.webobjects.appserver._private.WOWorkerThread.run() @bci=26,  
line=238 (Interpreted frame)

- java.lang.Thread.run() @bci=11, line=613 (Interpreted frame)

Ordinary thread doing something:

Thread [EMAIL PROTECTED]: (state = IN_NATIVE)
- java.net.SocketInputStream.socketRead0(java.io.FileDescriptor,  
byte[], int, int, int) @bci=0 (Compiled frame; information may be  
imprecise)
- java.net.SocketInputStream.read(byte[], int, int) @bci=84,  
line=129 (Compiled frame)
- org.apache.activemq.transport.tcp.TcpBufferedInputStream.fill()  
@bci=31, line=50 (Interpreted frame)


Deaf instance blocking at random point:

Thread [EMAIL PROTECTED]: (state = BLOCKED)
- java.util.regex.Pattern.matcher(java.lang.CharSequence) @bci=25,  
line=879 (Compiled frame)
-  
com 
.paizo 
.util.StringUtilities.stringWithoutHTMLEntities(java.lang.String)  
@bci=423, line=2206 (Compiled frame)
-  
com 
.paizo 
.util.StringUtilities.htmlStringToStandardString(java.lang.String)  
@bci=34, line=730 (Compiled frame)


Deaf instance blocking at random spot:

Thread [EMAIL PROTECTED]: (state = BLOCKED)
-  
com 
.webobjects 
.eocontrol.EOGenericRecord._keyGetBindingForKey(java.lang.String)  
@bci=10, line=171 (Compiled frame; information may be imprecise)
-  
com 
.webobjects.eocontrol.EOCustomObject.valueForKey(java.lang.String)  
@bci=8, line=1558 (Compiled frame)
-  
sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object,  
java.lang.Object[]) @bci=6, line=25 (Compiled frame)
-  
com 
.webobjects.eocontrol.EOCustomObject.valueForKey(java.lang.String)  
@bci=14, line=1559 (Compiled frame)
- com.webobjects.foundation.NSKeyValueCoding 
$Utility.valueForKey(java.lang.Object, java.lang.String) @bci=26,  
line=498 (Compiled frame)
- com.webobjects.foundation.NSKeyValueCodingAdditions 
$DefaultImplementation.valueForKeyPath(java.lang.Object,  
java.lang.String) @bci=19, line=212 (Compiled frame)
-  
com 
.webobjects 
.eocontrol 
.EOKeyValueQualifier.evaluateWithObject(java.lang.Object) @bci=5,  
line=131 (Compiled frame)
-  
com 
.webobjects 
.eocontrol 
.EOQualifier 
.filteredArrayWithQualifier(com.webobjects.foundation.NSArray,  
com.webobjects.eocontrol.EOQualifier) @bci=55, line=635 (Compiled  
frame)





O


On Mar 26, 2008, at 4:37 PM, Gary Teter wrote:

Now I'm completely baffled. I've switched memcached clients, and  
now I'm still getting temporarily deaf instances, but when I  
point jstack at one, it now says that ALL threads are "state =  
BLOCKED". After a couple of minutes the instance comes back.


Anyone have any ideas what could possibly be going on?

On Mar 25, 2008, at 4:18 PM, Chuck Hill wrote:


On Mar 25, 2008, at 4:05 PM, Gary Teter wrote:

jstack for the win! Not sure how I forgot about that tool, but  
it was able to get me good info.


Chalk one up for jstack!





I switched to ActiveMQ, which is a billion times better than  
OpenJMS, but we're still having temporarily deaf instances.   
jstack reported that Every. Single. Thread. was "state =  
BLOCKED", except one:


Thread [EMAIL PROTECTED]: (state = IN_NATIVE)
- sun.nio.ch.KQueueArrayWrapper.kevent0(int, long, int, long)  
@bci=0 (Interpreted frame)
- sun.nio.ch.KQueueArrayWrapper.poll(l

Re: Temporarily deaf instances

2008-03-26 Thread Gary Teter

On Mar 26, 2008, at 2:00 PM, Mike Schrag wrote:
I wonder if jstack has to pause the VM to get a thread dump or  
something?  Maybe these are red herrings?  If you jstack them when  
they're NOT in this stack, do they say BLOCKED?


In a non-borked instance, most worker threads are blocked, but a few  
are doing something. Those are usually IN_NATIVE.




Also, when it's in this state and you do TWO jstacks a little bit  
apart in time, are there changes or is it like the VM is frozen in  
time?


No changes according to diff.




ms

On Mar 26, 2008, at 4:56 PM, Gary Teter wrote:




n Mar 26, 2008, at 1:39 PM, Mike Schrag wrote:


Where are those threads blocked?  Most will be blocked waiting  
for incoming web requests, i assume.  Are there are threads  
blocked anywhere other than chilling in their WorkThread wait  
state?


Can you hit the direct connect port during this time?

ms


Yes, many worker threads are normally blocked waiting for incoming  
requests (on a normal, undeaf instance), but normally you'll see  
at least one or more threads that are actually doing something, e.g.:


Ordinary worker thread waiting:

Thread [EMAIL PROTECTED]: (state = BLOCKED)
- java.net.PlainSocketImpl.accept(java.net.SocketImpl) @bci=0,  
line=382 (Interpreted frame)
- java.net.ServerSocket.implAccept(java.net.Socket) @bci=50,  
line=450 (Interpreted frame)
- java.net.ServerSocket.accept() @bci=48, line=421 (Interpreted  
frame)
- com.webobjects.appserver._private.WOWorkerThread.run() @bci=26,  
line=238 (Interpreted frame)

- java.lang.Thread.run() @bci=11, line=613 (Interpreted frame)

Ordinary thread doing something:

Thread [EMAIL PROTECTED]: (state = IN_NATIVE)
- java.net.SocketInputStream.socketRead0(java.io.FileDescriptor,  
byte[], int, int, int) @bci=0 (Compiled frame; information may be  
imprecise)
- java.net.SocketInputStream.read(byte[], int, int) @bci=84,  
line=129 (Compiled frame)
- org.apache.activemq.transport.tcp.TcpBufferedInputStream.fill()  
@bci=31, line=50 (Interpreted frame)


Deaf instance blocking at random point:

Thread [EMAIL PROTECTED]: (state = BLOCKED)
- java.util.regex.Pattern.matcher(java.lang.CharSequence) @bci=25,  
line=879 (Compiled frame)
- com.paizo.util.StringUtilities.stringWithoutHTMLEntities 
(java.lang.String) @bci=423, line=2206 (Compiled frame)
- com.paizo.util.StringUtilities.htmlStringToStandardString 
(java.lang.String) @bci=34, line=730 (Compiled frame)


Deaf instance blocking at random spot:

Thread [EMAIL PROTECTED]: (state = BLOCKED)
- com.webobjects.eocontrol.EOGenericRecord._keyGetBindingForKey 
(java.lang.String) @bci=10, line=171 (Compiled frame; information  
may be imprecise)
- com.webobjects.eocontrol.EOCustomObject.valueForKey 
(java.lang.String) @bci=8, line=1558 (Compiled frame)
- sun.reflect.DelegatingMethodAccessorImpl.invoke 
(java.lang.Object, java.lang.Object[]) @bci=6, line=25 (Compiled  
frame)
- com.webobjects.eocontrol.EOCustomObject.valueForKey 
(java.lang.String) @bci=14, line=1559 (Compiled frame)
- com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey 
(java.lang.Object, java.lang.String) @bci=26, line=498 (Compiled  
frame)
- com.webobjects.foundation.NSKeyValueCodingAdditions 
$DefaultImplementation.valueForKeyPath(java.lang.Object,  
java.lang.String) @bci=19, line=212 (Compiled frame)
- com.webobjects.eocontrol.EOKeyValueQualifier.evaluateWithObject 
(java.lang.Object) @bci=5, line=131 (Compiled frame)
- com.webobjects.eocontrol.EOQualifier.filteredArrayWithQualifier 
(com.webobjects.foundation.NSArray,  
com.webobjects.eocontrol.EOQualifier) @bci=55, line=635 (Compiled  
frame)





O


On Mar 26, 2008, at 4:37 PM, Gary Teter wrote:

Now I'm completely baffled. I've switched memcached clients, and  
now I'm still getting temporarily deaf instances, but when I  
point jstack at one, it now says that ALL threads are "state =  
BLOCKED". After a couple of minutes the instance comes back.


Anyone have any ideas what could possibly be going on?

On Mar 25, 2008, at 4:18 PM, Chuck Hill wrote:


On Mar 25, 2008, at 4:05 PM, Gary Teter wrote:

jstack for the win! Not sure how I forgot about that tool, but  
it was able to get me good info.


Chalk one up for jstack!





I switched to ActiveMQ, which is a billion times better than  
OpenJMS, but we're still having temporarily deaf instances.   
jstack reported that Every. Single. Thread. was "state =  
BLOCKED", except one:


Thread [EMAIL PROTECTED]: (state = IN_NATIVE)
- sun.nio.ch.KQueueArrayWrapper.kevent0(int, long, int, long)  
@bci=0 (Interpreted frame)
- sun.nio.ch.KQueueArrayWrapper.poll(long) @bci=12, line=118  
(Interpreted frame)
- sun.nio.ch.KQueueSelectorImpl.doSelect(long) @bci=46,  
line=69 (Interpreted frame)
- sun.nio.ch.SelectorImpl.lockAndDoSelect(long) @bci=37,  
line=69 (Interpreted frame)
- sun.nio.ch.SelectorImpl.select(long) @bci=30, line=80  
(Compiled frame)
- net.spy.memcached.MemcachedClient.run() @bci=11, line=1054  
(Compiled frame)

Error occurred 

Re: Temporarily deaf instances

2008-03-26 Thread Chuck Hill

That would explain why it comes back after a while.


On Mar 26, 2008, at 2:02 PM, Mike Schrag wrote:

A huge amount of garbage collection running, possibly while swapping  
to disk might cause this ... How are you on memory consumption?   
Have you allocated the VM a large amount of memory that might cause  
it to swap to disk?  You should see IO spike and memory be very  
high.  What is your VM -Xmx setting?


ms

On Mar 26, 2008, at 4:59 PM, Chuck Hill wrote:

That looks like the whole JVM locks up.  I have _no_ idea what  
might cause that!


Chuck

On Mar 26, 2008, at 1:56 PM, Gary Teter wrote:




n Mar 26, 2008, at 1:39 PM, Mike Schrag wrote:


Where are those threads blocked?  Most will be blocked waiting  
for incoming web requests, i assume.  Are there are threads  
blocked anywhere other than chilling in their WorkThread wait  
state?


Can you hit the direct connect port during this time?

ms


Yes, many worker threads are normally blocked waiting for incoming  
requests (on a normal, undeaf instance), but normally you'll see  
at least one or more threads that are actually doing something,  
e.g.:


Ordinary worker thread waiting:

Thread [EMAIL PROTECTED]: (state = BLOCKED)
- java.net.PlainSocketImpl.accept(java.net.SocketImpl) @bci=0,  
line=382 (Interpreted frame)
- java.net.ServerSocket.implAccept(java.net.Socket) @bci=50,  
line=450 (Interpreted frame)
- java.net.ServerSocket.accept() @bci=48, line=421 (Interpreted  
frame)
- com.webobjects.appserver._private.WOWorkerThread.run() @bci=26,  
line=238 (Interpreted frame)

- java.lang.Thread.run() @bci=11, line=613 (Interpreted frame)

Ordinary thread doing something:

Thread [EMAIL PROTECTED]: (state = IN_NATIVE)
- java.net.SocketInputStream.socketRead0(java.io.FileDescriptor,  
byte[], int, int, int) @bci=0 (Compiled frame; information may be  
imprecise)
- java.net.SocketInputStream.read(byte[], int, int) @bci=84,  
line=129 (Compiled frame)
- org.apache.activemq.transport.tcp.TcpBufferedInputStream.fill()  
@bci=31, line=50 (Interpreted frame)


Deaf instance blocking at random point:

Thread [EMAIL PROTECTED]: (state = BLOCKED)
- java.util.regex.Pattern.matcher(java.lang.CharSequence) @bci=25,  
line=879 (Compiled frame)
-  
com 
.paizo 
.util.StringUtilities.stringWithoutHTMLEntities(java.lang.String)  
@bci=423, line=2206 (Compiled frame)
-  
com 
.paizo 
.util.StringUtilities.htmlStringToStandardString(java.lang.String)  
@bci=34, line=730 (Compiled frame)


Deaf instance blocking at random spot:

Thread [EMAIL PROTECTED]: (state = BLOCKED)
-  
com 
.webobjects 
.eocontrol.EOGenericRecord._keyGetBindingForKey(java.lang.String)  
@bci=10, line=171 (Compiled frame; information may be imprecise)
-  
com 
.webobjects.eocontrol.EOCustomObject.valueForKey(java.lang.String)  
@bci=8, line=1558 (Compiled frame)
-  
sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object,  
java.lang.Object[]) @bci=6, line=25 (Compiled frame)
-  
com 
.webobjects.eocontrol.EOCustomObject.valueForKey(java.lang.String)  
@bci=14, line=1559 (Compiled frame)
- com.webobjects.foundation.NSKeyValueCoding 
$Utility.valueForKey(java.lang.Object, java.lang.String) @bci=26,  
line=498 (Compiled frame)
- com.webobjects.foundation.NSKeyValueCodingAdditions 
$DefaultImplementation.valueForKeyPath(java.lang.Object,  
java.lang.String) @bci=19, line=212 (Compiled frame)
-  
com 
.webobjects 
.eocontrol 
.EOKeyValueQualifier.evaluateWithObject(java.lang.Object) @bci=5,  
line=131 (Compiled frame)
-  
com 
.webobjects 
.eocontrol 
.EOQualifier 
.filteredArrayWithQualifier(com.webobjects.foundation.NSArray,  
com.webobjects.eocontrol.EOQualifier) @bci=55, line=635 (Compiled  
frame)





O


On Mar 26, 2008, at 4:37 PM, Gary Teter wrote:

Now I'm completely baffled. I've switched memcached clients, and  
now I'm still getting temporarily deaf instances, but when I  
point jstack at one, it now says that ALL threads are "state =  
BLOCKED". After a couple of minutes the instance comes back.


Anyone have any ideas what could possibly be going on?

On Mar 25, 2008, at 4:18 PM, Chuck Hill wrote:


On Mar 25, 2008, at 4:05 PM, Gary Teter wrote:

jstack for the win! Not sure how I forgot about that tool, but  
it was able to get me good info.


Chalk one up for jstack!





I switched to ActiveMQ, which is a billion times better than  
OpenJMS, but we're still having temporarily deaf instances.   
jstack reported that Every. Single. Thread. was "state =  
BLOCKED", except one:


Thread [EMAIL PROTECTED]: (state = IN_NATIVE)
- sun.nio.ch.KQueueArrayWrapper.kevent0(int, long, int, long)  
@bci=0 (Interpreted frame)
- sun.nio.ch.KQueueArrayWrapper.poll(long) @bci=12, line=118  
(Interpreted frame)
- sun.nio.ch.KQueueSelectorImpl.doSelect(long) @bci=46,  
line=69 (Interpreted frame)
- sun.nio.ch.SelectorImpl.lockAndDoSelect(long) @bci=37,  
line=69 (Interpreted frame)
- sun.nio.ch.SelectorImpl.select(long) @bci=30, line=80  
(Compiled frame)
- net.spy.memcached.MemcachedClien

Re: Temporarily deaf instances

2008-03-26 Thread Mike Schrag
A huge amount of garbage collection running, possibly while swapping  
to disk might cause this ... How are you on memory consumption?  Have  
you allocated the VM a large amount of memory that might cause it to  
swap to disk?  You should see IO spike and memory be very high.  What  
is your VM -Xmx setting?


ms

On Mar 26, 2008, at 4:59 PM, Chuck Hill wrote:

That looks like the whole JVM locks up.  I have _no_ idea what might  
cause that!


Chuck

On Mar 26, 2008, at 1:56 PM, Gary Teter wrote:




n Mar 26, 2008, at 1:39 PM, Mike Schrag wrote:


Where are those threads blocked?  Most will be blocked waiting  
for incoming web requests, i assume.  Are there are threads  
blocked anywhere other than chilling in their WorkThread wait  
state?


Can you hit the direct connect port during this time?

ms


Yes, many worker threads are normally blocked waiting for incoming  
requests (on a normal, undeaf instance), but normally you'll see at  
least one or more threads that are actually doing something, e.g.:


Ordinary worker thread waiting:

Thread [EMAIL PROTECTED]: (state = BLOCKED)
- java.net.PlainSocketImpl.accept(java.net.SocketImpl) @bci=0,  
line=382 (Interpreted frame)
- java.net.ServerSocket.implAccept(java.net.Socket) @bci=50,  
line=450 (Interpreted frame)
- java.net.ServerSocket.accept() @bci=48, line=421 (Interpreted  
frame)
- com.webobjects.appserver._private.WOWorkerThread.run() @bci=26,  
line=238 (Interpreted frame)

- java.lang.Thread.run() @bci=11, line=613 (Interpreted frame)

Ordinary thread doing something:

Thread [EMAIL PROTECTED]: (state = IN_NATIVE)
- java.net.SocketInputStream.socketRead0(java.io.FileDescriptor,  
byte[], int, int, int) @bci=0 (Compiled frame; information may be  
imprecise)
- java.net.SocketInputStream.read(byte[], int, int) @bci=84,  
line=129 (Compiled frame)
- org.apache.activemq.transport.tcp.TcpBufferedInputStream.fill()  
@bci=31, line=50 (Interpreted frame)


Deaf instance blocking at random point:

Thread [EMAIL PROTECTED]: (state = BLOCKED)
- java.util.regex.Pattern.matcher(java.lang.CharSequence) @bci=25,  
line=879 (Compiled frame)
-  
com 
.paizo 
.util.StringUtilities.stringWithoutHTMLEntities(java.lang.String)  
@bci=423, line=2206 (Compiled frame)
-  
com 
.paizo 
.util.StringUtilities.htmlStringToStandardString(java.lang.String)  
@bci=34, line=730 (Compiled frame)


Deaf instance blocking at random spot:

Thread [EMAIL PROTECTED]: (state = BLOCKED)
-  
com 
.webobjects 
.eocontrol.EOGenericRecord._keyGetBindingForKey(java.lang.String)  
@bci=10, line=171 (Compiled frame; information may be imprecise)
-  
com 
.webobjects.eocontrol.EOCustomObject.valueForKey(java.lang.String)  
@bci=8, line=1558 (Compiled frame)
- sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object,  
java.lang.Object[]) @bci=6, line=25 (Compiled frame)
-  
com 
.webobjects.eocontrol.EOCustomObject.valueForKey(java.lang.String)  
@bci=14, line=1559 (Compiled frame)
- com.webobjects.foundation.NSKeyValueCoding 
$Utility.valueForKey(java.lang.Object, java.lang.String) @bci=26,  
line=498 (Compiled frame)
- com.webobjects.foundation.NSKeyValueCodingAdditions 
$DefaultImplementation.valueForKeyPath(java.lang.Object,  
java.lang.String) @bci=19, line=212 (Compiled frame)
-  
com 
.webobjects 
.eocontrol.EOKeyValueQualifier.evaluateWithObject(java.lang.Object)  
@bci=5, line=131 (Compiled frame)
-  
com 
.webobjects 
.eocontrol 
.EOQualifier 
.filteredArrayWithQualifier(com.webobjects.foundation.NSArray,  
com.webobjects.eocontrol.EOQualifier) @bci=55, line=635 (Compiled  
frame)





O


On Mar 26, 2008, at 4:37 PM, Gary Teter wrote:

Now I'm completely baffled. I've switched memcached clients, and  
now I'm still getting temporarily deaf instances, but when I  
point jstack at one, it now says that ALL threads are "state =  
BLOCKED". After a couple of minutes the instance comes back.


Anyone have any ideas what could possibly be going on?

On Mar 25, 2008, at 4:18 PM, Chuck Hill wrote:


On Mar 25, 2008, at 4:05 PM, Gary Teter wrote:

jstack for the win! Not sure how I forgot about that tool, but  
it was able to get me good info.


Chalk one up for jstack!





I switched to ActiveMQ, which is a billion times better than  
OpenJMS, but we're still having temporarily deaf instances.   
jstack reported that Every. Single. Thread. was "state =  
BLOCKED", except one:


Thread [EMAIL PROTECTED]: (state = IN_NATIVE)
- sun.nio.ch.KQueueArrayWrapper.kevent0(int, long, int, long)  
@bci=0 (Interpreted frame)
- sun.nio.ch.KQueueArrayWrapper.poll(long) @bci=12, line=118  
(Interpreted frame)
- sun.nio.ch.KQueueSelectorImpl.doSelect(long) @bci=46, line=69  
(Interpreted frame)
- sun.nio.ch.SelectorImpl.lockAndDoSelect(long) @bci=37,  
line=69 (Interpreted frame)
- sun.nio.ch.SelectorImpl.select(long) @bci=30, line=80  
(Compiled frame)
- net.spy.memcached.MemcachedClient.run() @bci=11, line=1054  
(Compiled frame)

Error occurred during stack walking:
java.lang.NullPointerExcep

Re: Temporarily deaf instances

2008-03-26 Thread Mike Schrag
I wonder if jstack has to pause the VM to get a thread dump or  
something?  Maybe these are red herrings?  If you jstack them when  
they're NOT in this stack, do they say BLOCKED?


Also, when it's in this state and you do TWO jstacks a little bit  
apart in time, are there changes or is it like the VM is frozen in time?


ms

On Mar 26, 2008, at 4:56 PM, Gary Teter wrote:




n Mar 26, 2008, at 1:39 PM, Mike Schrag wrote:


Where are those threads blocked?  Most will be blocked waiting for  
incoming web requests, i assume.  Are there are threads blocked  
anywhere other than chilling in their WorkThread wait state?


Can you hit the direct connect port during this time?

ms


Yes, many worker threads are normally blocked waiting for incoming  
requests (on a normal, undeaf instance), but normally you'll see at  
least one or more threads that are actually doing something, e.g.:


Ordinary worker thread waiting:

Thread [EMAIL PROTECTED]: (state = BLOCKED)
- java.net.PlainSocketImpl.accept(java.net.SocketImpl) @bci=0,  
line=382 (Interpreted frame)
- java.net.ServerSocket.implAccept(java.net.Socket) @bci=50,  
line=450 (Interpreted frame)

- java.net.ServerSocket.accept() @bci=48, line=421 (Interpreted frame)
- com.webobjects.appserver._private.WOWorkerThread.run() @bci=26,  
line=238 (Interpreted frame)

- java.lang.Thread.run() @bci=11, line=613 (Interpreted frame)

Ordinary thread doing something:

Thread [EMAIL PROTECTED]: (state = IN_NATIVE)
- java.net.SocketInputStream.socketRead0(java.io.FileDescriptor,  
byte[], int, int, int) @bci=0 (Compiled frame; information may be  
imprecise)
- java.net.SocketInputStream.read(byte[], int, int) @bci=84,  
line=129 (Compiled frame)
- org.apache.activemq.transport.tcp.TcpBufferedInputStream.fill()  
@bci=31, line=50 (Interpreted frame)


Deaf instance blocking at random point:

Thread [EMAIL PROTECTED]: (state = BLOCKED)
- java.util.regex.Pattern.matcher(java.lang.CharSequence) @bci=25,  
line=879 (Compiled frame)
-  
com 
.paizo 
.util.StringUtilities.stringWithoutHTMLEntities(java.lang.String)  
@bci=423, line=2206 (Compiled frame)
-  
com 
.paizo 
.util.StringUtilities.htmlStringToStandardString(java.lang.String)  
@bci=34, line=730 (Compiled frame)


Deaf instance blocking at random spot:

Thread [EMAIL PROTECTED]: (state = BLOCKED)
-  
com 
.webobjects 
.eocontrol.EOGenericRecord._keyGetBindingForKey(java.lang.String)  
@bci=10, line=171 (Compiled frame; information may be imprecise)
-  
com 
.webobjects.eocontrol.EOCustomObject.valueForKey(java.lang.String)  
@bci=8, line=1558 (Compiled frame)
- sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object,  
java.lang.Object[]) @bci=6, line=25 (Compiled frame)
-  
com 
.webobjects.eocontrol.EOCustomObject.valueForKey(java.lang.String)  
@bci=14, line=1559 (Compiled frame)
- com.webobjects.foundation.NSKeyValueCoding 
$Utility.valueForKey(java.lang.Object, java.lang.String) @bci=26,  
line=498 (Compiled frame)
- com.webobjects.foundation.NSKeyValueCodingAdditions 
$DefaultImplementation.valueForKeyPath(java.lang.Object,  
java.lang.String) @bci=19, line=212 (Compiled frame)
-  
com 
.webobjects 
.eocontrol.EOKeyValueQualifier.evaluateWithObject(java.lang.Object)  
@bci=5, line=131 (Compiled frame)
-  
com 
.webobjects 
.eocontrol 
.EOQualifier 
.filteredArrayWithQualifier(com.webobjects.foundation.NSArray,  
com.webobjects.eocontrol.EOQualifier) @bci=55, line=635 (Compiled  
frame)





O


On Mar 26, 2008, at 4:37 PM, Gary Teter wrote:

Now I'm completely baffled. I've switched memcached clients, and  
now I'm still getting temporarily deaf instances, but when I point  
jstack at one, it now says that ALL threads are "state = BLOCKED".  
After a couple of minutes the instance comes back.


Anyone have any ideas what could possibly be going on?

On Mar 25, 2008, at 4:18 PM, Chuck Hill wrote:


On Mar 25, 2008, at 4:05 PM, Gary Teter wrote:

jstack for the win! Not sure how I forgot about that tool, but  
it was able to get me good info.


Chalk one up for jstack!





I switched to ActiveMQ, which is a billion times better than  
OpenJMS, but we're still having temporarily deaf instances.   
jstack reported that Every. Single. Thread. was "state =  
BLOCKED", except one:


Thread [EMAIL PROTECTED]: (state = IN_NATIVE)
- sun.nio.ch.KQueueArrayWrapper.kevent0(int, long, int, long)  
@bci=0 (Interpreted frame)
- sun.nio.ch.KQueueArrayWrapper.poll(long) @bci=12, line=118  
(Interpreted frame)
- sun.nio.ch.KQueueSelectorImpl.doSelect(long) @bci=46, line=69  
(Interpreted frame)
- sun.nio.ch.SelectorImpl.lockAndDoSelect(long) @bci=37, line=69  
(Interpreted frame)
- sun.nio.ch.SelectorImpl.select(long) @bci=30, line=80  
(Compiled frame)
- net.spy.memcached.MemcachedClient.run() @bci=11, line=1054  
(Compiled frame)

Error occurred during stack walking:
java.lang.NullPointerException
 at  
sun.jvm.hotspot.runtime.Frame.addressOfStackSlot(Frame.java:214)
 at  
sun.jvm.hotspot.runtime.x86.X86Frame.ge

Re: Temporarily deaf instances

2008-03-26 Thread Chuck Hill
That looks like the whole JVM locks up.  I have _no_ idea what might  
cause that!


Chuck

On Mar 26, 2008, at 1:56 PM, Gary Teter wrote:




n Mar 26, 2008, at 1:39 PM, Mike Schrag wrote:


Where are those threads blocked?  Most will be blocked waiting for  
incoming web requests, i assume.  Are there are threads blocked  
anywhere other than chilling in their WorkThread wait state?


Can you hit the direct connect port during this time?

ms


Yes, many worker threads are normally blocked waiting for incoming  
requests (on a normal, undeaf instance), but normally you'll see at  
least one or more threads that are actually doing something, e.g.:


Ordinary worker thread waiting:

Thread [EMAIL PROTECTED]: (state = BLOCKED)
- java.net.PlainSocketImpl.accept(java.net.SocketImpl) @bci=0,  
line=382 (Interpreted frame)
- java.net.ServerSocket.implAccept(java.net.Socket) @bci=50,  
line=450 (Interpreted frame)

- java.net.ServerSocket.accept() @bci=48, line=421 (Interpreted frame)
- com.webobjects.appserver._private.WOWorkerThread.run() @bci=26,  
line=238 (Interpreted frame)

- java.lang.Thread.run() @bci=11, line=613 (Interpreted frame)

Ordinary thread doing something:

Thread [EMAIL PROTECTED]: (state = IN_NATIVE)
- java.net.SocketInputStream.socketRead0(java.io.FileDescriptor,  
byte[], int, int, int) @bci=0 (Compiled frame; information may be  
imprecise)
- java.net.SocketInputStream.read(byte[], int, int) @bci=84,  
line=129 (Compiled frame)
- org.apache.activemq.transport.tcp.TcpBufferedInputStream.fill()  
@bci=31, line=50 (Interpreted frame)


Deaf instance blocking at random point:

Thread [EMAIL PROTECTED]: (state = BLOCKED)
- java.util.regex.Pattern.matcher(java.lang.CharSequence) @bci=25,  
line=879 (Compiled frame)
-  
com 
.paizo 
.util.StringUtilities.stringWithoutHTMLEntities(java.lang.String)  
@bci=423, line=2206 (Compiled frame)
-  
com 
.paizo 
.util.StringUtilities.htmlStringToStandardString(java.lang.String)  
@bci=34, line=730 (Compiled frame)


Deaf instance blocking at random spot:

Thread [EMAIL PROTECTED]: (state = BLOCKED)
-  
com 
.webobjects 
.eocontrol.EOGenericRecord._keyGetBindingForKey(java.lang.String)  
@bci=10, line=171 (Compiled frame; information may be imprecise)
-  
com 
.webobjects.eocontrol.EOCustomObject.valueForKey(java.lang.String)  
@bci=8, line=1558 (Compiled frame)
- sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object,  
java.lang.Object[]) @bci=6, line=25 (Compiled frame)
-  
com 
.webobjects.eocontrol.EOCustomObject.valueForKey(java.lang.String)  
@bci=14, line=1559 (Compiled frame)
- com.webobjects.foundation.NSKeyValueCoding 
$Utility.valueForKey(java.lang.Object, java.lang.String) @bci=26,  
line=498 (Compiled frame)
- com.webobjects.foundation.NSKeyValueCodingAdditions 
$DefaultImplementation.valueForKeyPath(java.lang.Object,  
java.lang.String) @bci=19, line=212 (Compiled frame)
-  
com 
.webobjects 
.eocontrol.EOKeyValueQualifier.evaluateWithObject(java.lang.Object)  
@bci=5, line=131 (Compiled frame)
-  
com 
.webobjects 
.eocontrol 
.EOQualifier 
.filteredArrayWithQualifier(com.webobjects.foundation.NSArray,  
com.webobjects.eocontrol.EOQualifier) @bci=55, line=635 (Compiled  
frame)





O


On Mar 26, 2008, at 4:37 PM, Gary Teter wrote:

Now I'm completely baffled. I've switched memcached clients, and  
now I'm still getting temporarily deaf instances, but when I point  
jstack at one, it now says that ALL threads are "state = BLOCKED".  
After a couple of minutes the instance comes back.


Anyone have any ideas what could possibly be going on?

On Mar 25, 2008, at 4:18 PM, Chuck Hill wrote:


On Mar 25, 2008, at 4:05 PM, Gary Teter wrote:

jstack for the win! Not sure how I forgot about that tool, but  
it was able to get me good info.


Chalk one up for jstack!





I switched to ActiveMQ, which is a billion times better than  
OpenJMS, but we're still having temporarily deaf instances.   
jstack reported that Every. Single. Thread. was "state =  
BLOCKED", except one:


Thread [EMAIL PROTECTED]: (state = IN_NATIVE)
- sun.nio.ch.KQueueArrayWrapper.kevent0(int, long, int, long)  
@bci=0 (Interpreted frame)
- sun.nio.ch.KQueueArrayWrapper.poll(long) @bci=12, line=118  
(Interpreted frame)
- sun.nio.ch.KQueueSelectorImpl.doSelect(long) @bci=46, line=69  
(Interpreted frame)
- sun.nio.ch.SelectorImpl.lockAndDoSelect(long) @bci=37, line=69  
(Interpreted frame)
- sun.nio.ch.SelectorImpl.select(long) @bci=30, line=80  
(Compiled frame)
- net.spy.memcached.MemcachedClient.run() @bci=11, line=1054  
(Compiled frame)

Error occurred during stack walking:
java.lang.NullPointerException
 at  
sun.jvm.hotspot.runtime.Frame.addressOfStackSlot(Frame.java:214)
 at  
sun.jvm.hotspot.runtime.x86.X86Frame.getSenderSP(X86Frame.java: 
355)
 at  
sun.jvm.hotspot.runtime.x86.X86Frame.sender(X86Frame.java:218)

 at sun.jvm.hotspot.runtime.Frame.sender(Frame.java:184)
 at sun.jvm.hotspot.runtime.Frame.realSender(Frame.java:189)
 at 

Re: Temporarily deaf instances

2008-03-26 Thread Gary Teter



n Mar 26, 2008, at 1:39 PM, Mike Schrag wrote:


Where are those threads blocked?  Most will be blocked waiting for  
incoming web requests, i assume.  Are there are threads blocked  
anywhere other than chilling in their WorkThread wait state?


Can you hit the direct connect port during this time?

ms


Yes, many worker threads are normally blocked waiting for incoming  
requests (on a normal, undeaf instance), but normally you'll see at  
least one or more threads that are actually doing something, e.g.:


Ordinary worker thread waiting:

Thread [EMAIL PROTECTED]: (state = BLOCKED)
 - java.net.PlainSocketImpl.accept(java.net.SocketImpl) @bci=0,  
line=382 (Interpreted frame)
 - java.net.ServerSocket.implAccept(java.net.Socket) @bci=50,  
line=450 (Interpreted frame)

 - java.net.ServerSocket.accept() @bci=48, line=421 (Interpreted frame)
 - com.webobjects.appserver._private.WOWorkerThread.run() @bci=26,  
line=238 (Interpreted frame)

 - java.lang.Thread.run() @bci=11, line=613 (Interpreted frame)

Ordinary thread doing something:

Thread [EMAIL PROTECTED]: (state = IN_NATIVE)
 - java.net.SocketInputStream.socketRead0(java.io.FileDescriptor,  
byte[], int, int, int) @bci=0 (Compiled frame; information may be  
imprecise)
 - java.net.SocketInputStream.read(byte[], int, int) @bci=84,  
line=129 (Compiled frame)
 - org.apache.activemq.transport.tcp.TcpBufferedInputStream.fill()  
@bci=31, line=50 (Interpreted frame)


Deaf instance blocking at random point:

Thread [EMAIL PROTECTED]: (state = BLOCKED)
 - java.util.regex.Pattern.matcher(java.lang.CharSequence) @bci=25,  
line=879 (Compiled frame)
 - com.paizo.util.StringUtilities.stringWithoutHTMLEntities 
(java.lang.String) @bci=423, line=2206 (Compiled frame)
 - com.paizo.util.StringUtilities.htmlStringToStandardString 
(java.lang.String) @bci=34, line=730 (Compiled frame)


Deaf instance blocking at random spot:

Thread [EMAIL PROTECTED]: (state = BLOCKED)
 - com.webobjects.eocontrol.EOGenericRecord._keyGetBindingForKey 
(java.lang.String) @bci=10, line=171 (Compiled frame; information may  
be imprecise)
 - com.webobjects.eocontrol.EOCustomObject.valueForKey 
(java.lang.String) @bci=8, line=1558 (Compiled frame)
 - sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object,  
java.lang.Object[]) @bci=6, line=25 (Compiled frame)
 - com.webobjects.eocontrol.EOCustomObject.valueForKey 
(java.lang.String) @bci=14, line=1559 (Compiled frame)
 - com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey 
(java.lang.Object, java.lang.String) @bci=26, line=498 (Compiled frame)
 - com.webobjects.foundation.NSKeyValueCodingAdditions 
$DefaultImplementation.valueForKeyPath(java.lang.Object,  
java.lang.String) @bci=19, line=212 (Compiled frame)
 - com.webobjects.eocontrol.EOKeyValueQualifier.evaluateWithObject 
(java.lang.Object) @bci=5, line=131 (Compiled frame)
 - com.webobjects.eocontrol.EOQualifier.filteredArrayWithQualifier 
(com.webobjects.foundation.NSArray,  
com.webobjects.eocontrol.EOQualifier) @bci=55, line=635 (Compiled frame)





O


On Mar 26, 2008, at 4:37 PM, Gary Teter wrote:

Now I'm completely baffled. I've switched memcached clients, and  
now I'm still getting temporarily deaf instances, but when I point  
jstack at one, it now says that ALL threads are "state = BLOCKED".  
After a couple of minutes the instance comes back.


Anyone have any ideas what could possibly be going on?

On Mar 25, 2008, at 4:18 PM, Chuck Hill wrote:


On Mar 25, 2008, at 4:05 PM, Gary Teter wrote:

jstack for the win! Not sure how I forgot about that tool, but  
it was able to get me good info.


Chalk one up for jstack!





I switched to ActiveMQ, which is a billion times better than  
OpenJMS, but we're still having temporarily deaf instances.   
jstack reported that Every. Single. Thread. was "state =  
BLOCKED", except one:


Thread [EMAIL PROTECTED]: (state = IN_NATIVE)
- sun.nio.ch.KQueueArrayWrapper.kevent0(int, long, int, long)  
@bci=0 (Interpreted frame)
- sun.nio.ch.KQueueArrayWrapper.poll(long) @bci=12, line=118  
(Interpreted frame)
- sun.nio.ch.KQueueSelectorImpl.doSelect(long) @bci=46, line=69  
(Interpreted frame)
- sun.nio.ch.SelectorImpl.lockAndDoSelect(long) @bci=37, line=69  
(Interpreted frame)
- sun.nio.ch.SelectorImpl.select(long) @bci=30, line=80  
(Compiled frame)
- net.spy.memcached.MemcachedClient.run() @bci=11, line=1054  
(Compiled frame)

Error occurred during stack walking:
java.lang.NullPointerException
  at sun.jvm.hotspot.runtime.Frame.addressOfStackSlot 
(Frame.java:214)
  at sun.jvm.hotspot.runtime.x86.X86Frame.getSenderSP 
(X86Frame.java:355)
  at sun.jvm.hotspot.runtime.x86.X86Frame.sender 
(X86Frame.java:218)

  at sun.jvm.hotspot.runtime.Frame.sender(Frame.java:184)
  at sun.jvm.hotspot.runtime.Frame.realSender(Frame.java:189)
  at sun.jvm.hotspot.runtime.VFrame.sender(VFrame.java:102)
  at sun.jvm.hotspot.runtime.VFrame.javaSender(VFrame.java:134)
  at sun.jvm.hotspot.tools.Stack

Re: Temporarily deaf instances

2008-03-26 Thread Mike Schrag
Where are those threads blocked?  Most will be blocked waiting for  
incoming web requests, i assume.  Are there are threads blocked  
anywhere other than chilling in their WorkThread wait state?


Can you hit the direct connect port during this time?

ms

On Mar 26, 2008, at 4:37 PM, Gary Teter wrote:

Now I'm completely baffled. I've switched memcached clients, and now  
I'm still getting temporarily deaf instances, but when I point  
jstack at one, it now says that ALL threads are "state = BLOCKED".  
After a couple of minutes the instance comes back.


Anyone have any ideas what could possibly be going on?

On Mar 25, 2008, at 4:18 PM, Chuck Hill wrote:


On Mar 25, 2008, at 4:05 PM, Gary Teter wrote:

jstack for the win! Not sure how I forgot about that tool, but it  
was able to get me good info.


Chalk one up for jstack!





I switched to ActiveMQ, which is a billion times better than  
OpenJMS, but we're still having temporarily deaf instances.   
jstack reported that Every. Single. Thread. was "state = BLOCKED",  
except one:


Thread [EMAIL PROTECTED]: (state = IN_NATIVE)
- sun.nio.ch.KQueueArrayWrapper.kevent0(int, long, int, long)  
@bci=0 (Interpreted frame)
- sun.nio.ch.KQueueArrayWrapper.poll(long) @bci=12, line=118  
(Interpreted frame)
- sun.nio.ch.KQueueSelectorImpl.doSelect(long) @bci=46, line=69  
(Interpreted frame)
- sun.nio.ch.SelectorImpl.lockAndDoSelect(long) @bci=37, line=69  
(Interpreted frame)
- sun.nio.ch.SelectorImpl.select(long) @bci=30, line=80 (Compiled  
frame)
- net.spy.memcached.MemcachedClient.run() @bci=11, line=1054  
(Compiled frame)

Error occurred during stack walking:
java.lang.NullPointerException
  at  
sun.jvm.hotspot.runtime.Frame.addressOfStackSlot(Frame.java:214)
  at  
sun.jvm.hotspot.runtime.x86.X86Frame.getSenderSP(X86Frame.java:355)
  at sun.jvm.hotspot.runtime.x86.X86Frame.sender(X86Frame.java: 
218)

  at sun.jvm.hotspot.runtime.Frame.sender(Frame.java:184)
  at sun.jvm.hotspot.runtime.Frame.realSender(Frame.java:189)
  at sun.jvm.hotspot.runtime.VFrame.sender(VFrame.java:102)
  at sun.jvm.hotspot.runtime.VFrame.javaSender(VFrame.java:134)
  at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:50)
  at sun.jvm.hotspot.tools.JStack.run(JStack.java:41)
  at sun.jvm.hotspot.tools.Tool.start(Tool.java:204)
  at sun.jvm.hotspot.tools.JStack.main(JStack.java:62)

So it looks like I'm off to download a different memcached client.


On Mar 24, 2008, at 12:32 PM, Mike Schrag wrote:
That's what everyone says, but JGroups made this particular  
problem worse. :(
Hmm .. I've been running the JGroups version for almost two years  
in production and with some pretty substantial load tests  
(500-1000 insane-clicky-concurrent-making-changing users).  I've  
never run it on top of JMS, and admittedly, you lose persistent  
message delivery with the non-JMS one, but for us this wasn't a  
problem.


But still, I don't think this is a deadlock because you come  
back, and you don't come back from deadlocks.  JGroups does love  
to create threads, but they don't have many live concurrently,  
generally (just lots created over time).  Without being able to  
get a thread dump, it will be pretty hard to diagnose this.  If  
you're running on 1.5 (I think you must be because I think  
JGroups is 1.5 only?) you might try running a jstack on your app  
when this happens, though I would think it would have less  
success than a kill -QUIT would ... Worth a shot, though.




--
WireHose: Smart metadata and personalization for WebObjects.
http://wirehose.com/


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to [EMAIL PROTECTED]



--

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects





___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/bigdog%40wirehose.com

This email sent to [EMAIL PROTECTED]


--
WireHose: Smart metadata and personalization for WebObjects.
http://wirehose.com/


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com

This email sent to [EMAIL PROTECTED]



___
Do not post admin requests t

Re: Temporarily deaf instances

2008-03-26 Thread Gary Teter
Now I'm completely baffled. I've switched memcached clients, and now  
I'm still getting temporarily deaf instances, but when I point jstack  
at one, it now says that ALL threads are "state = BLOCKED". After a  
couple of minutes the instance comes back.


Anyone have any ideas what could possibly be going on?

On Mar 25, 2008, at 4:18 PM, Chuck Hill wrote:


On Mar 25, 2008, at 4:05 PM, Gary Teter wrote:

jstack for the win! Not sure how I forgot about that tool, but it  
was able to get me good info.


Chalk one up for jstack!





I switched to ActiveMQ, which is a billion times better than  
OpenJMS, but we're still having temporarily deaf instances.   
jstack reported that Every. Single. Thread. was "state = BLOCKED",  
except one:


Thread [EMAIL PROTECTED]: (state = IN_NATIVE)
- sun.nio.ch.KQueueArrayWrapper.kevent0(int, long, int, long)  
@bci=0 (Interpreted frame)
- sun.nio.ch.KQueueArrayWrapper.poll(long) @bci=12, line=118  
(Interpreted frame)
- sun.nio.ch.KQueueSelectorImpl.doSelect(long) @bci=46, line=69  
(Interpreted frame)
- sun.nio.ch.SelectorImpl.lockAndDoSelect(long) @bci=37, line=69  
(Interpreted frame)
- sun.nio.ch.SelectorImpl.select(long) @bci=30, line=80 (Compiled  
frame)
- net.spy.memcached.MemcachedClient.run() @bci=11, line=1054  
(Compiled frame)

Error occurred during stack walking:
java.lang.NullPointerException
   at sun.jvm.hotspot.runtime.Frame.addressOfStackSlot 
(Frame.java:214)
   at sun.jvm.hotspot.runtime.x86.X86Frame.getSenderSP 
(X86Frame.java:355)
   at sun.jvm.hotspot.runtime.x86.X86Frame.sender 
(X86Frame.java:218)

   at sun.jvm.hotspot.runtime.Frame.sender(Frame.java:184)
   at sun.jvm.hotspot.runtime.Frame.realSender(Frame.java:189)
   at sun.jvm.hotspot.runtime.VFrame.sender(VFrame.java:102)
   at sun.jvm.hotspot.runtime.VFrame.javaSender(VFrame.java:134)
   at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:50)
   at sun.jvm.hotspot.tools.JStack.run(JStack.java:41)
   at sun.jvm.hotspot.tools.Tool.start(Tool.java:204)
   at sun.jvm.hotspot.tools.JStack.main(JStack.java:62)

So it looks like I'm off to download a different memcached client.


On Mar 24, 2008, at 12:32 PM, Mike Schrag wrote:
That's what everyone says, but JGroups made this particular  
problem worse. :(
Hmm .. I've been running the JGroups version for almost two years  
in production and with some pretty substantial load tests  
(500-1000 insane-clicky-concurrent-making-changing users).  I've  
never run it on top of JMS, and admittedly, you lose persistent  
message delivery with the non-JMS one, but for us this wasn't a  
problem.


But still, I don't think this is a deadlock because you come  
back, and you don't come back from deadlocks.  JGroups does love  
to create threads, but they don't have many live concurrently,  
generally (just lots created over time).  Without being able to  
get a thread dump, it will be pretty hard to diagnose this.  If  
you're running on 1.5 (I think you must be because I think  
JGroups is 1.5 only?) you might try running a jstack on your app  
when this happens, though I would think it would have less  
success than a kill -QUIT would ... Worth a shot, though.




--
WireHose: Smart metadata and personalization for WebObjects.
http://wirehose.com/


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill% 
40global-village.net


This email sent to [EMAIL PROTECTED]



--

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects





___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/bigdog% 
40wirehose.com


This email sent to [EMAIL PROTECTED]


--
WireHose: Smart metadata and personalization for WebObjects.
http://wirehose.com/


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Maven (was: WO 5.4 Linux Deployment)

2008-03-26 Thread Andrew Lindesay

Hi Lachlan;

Check out;


http://homepage.mac.com/andrewlindesay/le/manuals/lewostuff/LEWOStuffOverview.pdf

Section "10.3 Framework Jar Task" is the bit you are looking for.   
Stick "lejstuff.jar" in;


~/.ant/lib

And pop this into your ant file's init;



I can send you a binary for this off-list.  The distro terms are here  
under "Availability";


http://homepage.mac.com/andrewlindesay/le/page_lestuff.html

cheers.

Off topic, but if anybody is interested, I have also created an ant  
task for making those as well.

...

Looks nice. Where have you defined leframeworkjar and so forth?


___
Andrew Lindesay
technology : www.lindesay.co.nz
business : www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: [SOLVED] Re: EOClientApplicationSupport weirdness

2008-03-26 Thread Lachlan Deck

Hi Florijan,

On 27/03/2008, at 3:45 AM, Florijan Stamenkovic wrote:
Lachlan, thanks for the reply, a slightly modified version of your  
code works.


Oh good.

The "b" option, the only one applicable to my situation... Below is  
my modified loop:


//  try to connect to all given urls
for(String url : urls){
url = url.trim();   

try{
//  code added to my loop
//  can't deal with existing EOApp instance 
args because
//	one was not instantiated yet (this code is in static void  
main(String[] args) )

NSMutableDictionary arguments = new 
NSMutableDictionary();
arguments.setObjectForKey(url, 
ApplicationURLProperty);
EOApplication.setArguments(arguments);


In that case, you should file a bug report. The bug is in  
EOApplication._mergeArguments which favours key-values already set  
rather than new updates to those keys' values. I don't know if  
NSProperties does the same.


with regards,
--

Lachlan Deck



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WO 5.4 Generated SQL missing spaces fix?

2008-03-26 Thread Guido Neitzer

On 26.03.2008, at 13:26, Gustavo Pizano wrote:

Im under 5.4.1 adn the sql its an issue, I can't even use migrations  
or something like that i just create the database with MSQ  
Administrator or such a  similar tool. Im waiting for the new update.


You can use migrations. But you have to use SQL file based migrations.  
Take a look at ERXMigration. Works fine.


cug

--
http://www.event-s.net

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Maven (was: WO 5.4 Linux Deployment)

2008-03-26 Thread Lachlan Deck

Hi Andrew,

On 26/03/2008, at 7:03 PM, Andrew Lindesay wrote:
That's it. If you build a .jar in this way it magically becomes a  
'framework' as far as WebObjects is concerned.


Off topic, but if anybody is interested, I have also created an ant  
task for making those as well.


Looks nice. Where have you defined leframeworkjar and so forth?

with regards,
--

Lachlan Deck



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WO 5.4 Generated SQL missing spaces fix?

2008-03-26 Thread Gustavo Pizano
Im under 5.4.1 adn the sql its an issue, I can't even use migrations  
or something like that i just create the database with MSQ  
Administrator or such a  similar tool. Im waiting for the new update.


Gus


On Mar 26, 2008, at 2:19 PM, Mike Schrag wrote:

Actually, I _think_ the space problem is fixed in 5.4.1, but the  
other sql gen problem is still an issue.  You can try it in 5.4.1  
and see how it goes, but I suspect it will be an unhappy ending.


ms

On Mar 26, 2008, at 3:11 PM, Jonathan 'Wolf' Rentzsch wrote:


On Mar 26, 2008, at 1:56 PM, Daryl Lee wrote:

It'll be fixed in a post-5.4.1 release.


Aha, yeah I see I missed that 5.4.1 is public:



Too bad it's busted in 5.4.1 too. Looks like I'll have to downgrade  
to 5.3 for now.


| Jonathan 'Wolf' Rentzsch   http://rentzsch.com
| Red Shed Software   http://redshed.net
| "better" necessarily means "different"

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com

This email sent to [EMAIL PROTECTED]



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/gustavpicora%40gmail.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WO 5.4 Generated SQL missing spaces fix?

2008-03-26 Thread Mike Schrag
Actually, I _think_ the space problem is fixed in 5.4.1, but the other  
sql gen problem is still an issue.  You can try it in 5.4.1 and see  
how it goes, but I suspect it will be an unhappy ending.


ms

On Mar 26, 2008, at 3:11 PM, Jonathan 'Wolf' Rentzsch wrote:


On Mar 26, 2008, at 1:56 PM, Daryl Lee wrote:

It'll be fixed in a post-5.4.1 release.


Aha, yeah I see I missed that 5.4.1 is public:



Too bad it's busted in 5.4.1 too. Looks like I'll have to downgrade  
to 5.3 for now.


| Jonathan 'Wolf' Rentzsch   http://rentzsch.com
| Red Shed Software   http://redshed.net
| "better" necessarily means "different"

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com

This email sent to [EMAIL PROTECTED]



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WO 5.4 Generated SQL missing spaces fix?

2008-03-26 Thread Jonathan 'Wolf' Rentzsch

On Mar 26, 2008, at 1:56 PM, Daryl Lee wrote:

It'll be fixed in a post-5.4.1 release.


Aha, yeah I see I missed that 5.4.1 is public:



Too bad it's busted in 5.4.1 too. Looks like I'll have to downgrade to  
5.3 for now.


| Jonathan 'Wolf' Rentzsch   http://rentzsch.com
| Red Shed Software   http://redshed.net
| "better" necessarily means "different"

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WO 5.4 Generated SQL missing spaces fix?

2008-03-26 Thread Daryl Lee

It'll be fixed in a post-5.4.1 release.

On Mar 26, 2008, at 11:42 AM, Jonathan 'Wolf' Rentzsch wrote:


On Mar 26, 2008, at 1:33 PM, Mike Schrag wrote:
There's a bug in 5.4 that causes SQL generation to not work  
properly when using the older 5.3 SQL gen API's (which WOLips uses  
to maintain compatibility between 5.3 and 5.4).  Pierre has fixed  
this and it will be in the next release.  Unfortunately, there is  
no workaround that I know of.


Oh, you mean this release?




WO 5.4.1 is seemingly golden and available now, through a nondirect- 
channel. I'd say more, but I'd bet that breaks my NDA.


| Jonathan 'Wolf' Rentzsch   http://rentzsch.com
| Red Shed Software   http://redshed.net
| "better" necessarily means "different"

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/dlee%40apple.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WO 5.4 Generated SQL missing spaces fix?

2008-03-26 Thread Jonathan 'Wolf' Rentzsch

On Mar 26, 2008, at 1:33 PM, Mike Schrag wrote:
There's a bug in 5.4 that causes SQL generation to not work properly  
when using the older 5.3 SQL gen API's (which WOLips uses to  
maintain compatibility between 5.3 and 5.4).  Pierre has fixed this  
and it will be in the next release.  Unfortunately, there is no  
workaround that I know of.


Oh, you mean this release?




WO 5.4.1 is seemingly golden and available now, through a nondirect- 
channel. I'd say more, but I'd bet that breaks my NDA.


| Jonathan 'Wolf' Rentzsch   http://rentzsch.com
| Red Shed Software   http://redshed.net
| "better" necessarily means "different"

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WO 5.4 Generated SQL missing spaces fix?

2008-03-26 Thread Mike Schrag
There's a bug in 5.4 that causes SQL generation to not work properly  
when using the older 5.3 SQL gen API's (which WOLips uses to maintain  
compatibility between 5.3 and 5.4).  Pierre has fixed this and it will  
be in the next release.  Unfortunately, there is no workaround that I  
know of.


ms

On Mar 26, 2008, at 2:22 PM, Jonathan 'Wolf' Rentzsch wrote:

Anyone have a fix or work-around for the WO 5.4-missing-spaces-SQL- 
gen bug yet? I'm on MySQL 5 and WOLips nightly.






| Jonathan 'Wolf' Rentzsch   http://rentzsch.com
| Red Shed Software   http://redshed.net
| "better" necessarily means "different"

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com

This email sent to [EMAIL PROTECTED]



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


WO 5.4 Generated SQL missing spaces fix?

2008-03-26 Thread Jonathan 'Wolf' Rentzsch
Anyone have a fix or work-around for the WO 5.4-missing-spaces-SQL-gen  
bug yet? I'm on MySQL 5 and WOLips nightly.





| Jonathan 'Wolf' Rentzsch   http://rentzsch.com
| Red Shed Software   http://redshed.net
| "better" necessarily means "different"

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


[SOLVED] Re: EOClientApplicationSupport weirdness

2008-03-26 Thread Florijan Stamenkovic
Lachlan, thanks for the reply, a slightly modified version of your  
code works. The "b" option, the only one applicable to my  
situation... Below is my modified loop:


//  try to connect to all given urls
for(String url : urls){
url = url.trim();   

try{
//  code added to my loop
//  can't deal with existing EOApp instance 
args because
//	one was not instantiated yet (this code is in static void main 
(String[] args) )

NSMutableDictionary arguments = new 
NSMutableDictionary();
arguments.setObjectForKey(url, 
ApplicationURLProperty);
EOApplication.setArguments(arguments);

//  try to connect

com.webobjects.eoapplication.client.EOClientApplicationSupport.main(
new 
String[]{ApplicationURLProperty, url});

//  wait for the specified timeout
synchronized(monitor){
monitor.wait(TIMEOUT);
}
//  if connection has been established, 
return
if(connected) return;
}catch(Throwable th){}
}

Thanks,
Flor ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: WO 5.4 Linux Deployment

2008-03-26 Thread David Avendasora

Really! Progress is a wonderful thing!

Dave

On Mar 26, 2008, at 8:38 AM, Jeff Smith wrote:

As a matter of fact, I've found that just creating the projects with  
servlet support and then checking the WOLips boxes for Servlet  
deployment and automatically generating the WAR files (in the  
preferences) was all I needed to do to get the proper WAR file  
generated.


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


[ANN] New Screencast

2008-03-26 Thread David LeBer

I just posted part 2 of my WO/Project Wonder/Wolips Series.



This episode introduces:

-  Reusable components
-  Importing files into your project
-  DirectActions
-  Modeling relationships
-  Updating a db schema with Migrations

In doing these recordings I've realized a few things:

- It's a lot harder than it looks to make it look easy.
- It's important to make sure your wireless keyboard has a fresh  
battery before you start :-)
- I  probably don't use a significant chunk of the tools - ie: I just  
discovered the cmd+option z "wrap with" menu, sad eh?


I'm thinking of doing a "Getting the most out of WOLips" screencast  
that is just a fast paced series of examples using the built in  
Eclipse and WOLips shortcuts/re-factoring tools. As I mentioned above,  
I'm probably oblivious to a ton of them, so to shorten my learning  
curve, please send me your favorites.


;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WO 5.4 Linux Deployment

2008-03-26 Thread Jeff Smith
We've just started deploying on Linux (ubuntu in this case) using a  
hosting provider and have found that the Tomcat/WAR file deployment  
works very well.  Nothing special being used here, mainly the standard  
dev tools/WO install from Apple (5.4) and then Eclipse+WOLips (latest  
stable) to build the project/WAR files.


As a matter of fact, I've found that just creating the projects with  
servlet support and then checking the WOLips boxes for Servlet  
deployment and automatically generating the WAR files (in the  
preferences) was all I needed to do to get the proper WAR file  
generated.


Jeff

On Mar 25, 2008, at 9:41 PM, Aleksey Novicov wrote:

I am looking for input and instruction on deploying WO 5.4 apps on  
Red Hat Linux. Are there any updated instructions for WO 5.4? Is  
there a pre-compiled Apache 2.2 WebObjects adapter for Red Hat  
available? How about deploying on Tomcat? Is it preferred over  
JavaMonitor/wotaskd? I have experience with JavaMonitor on OS X but  
have never tried deploying on Tomcat.


By the way, this mail list is invaluable. Thanks to all of the  
contributors.


Aleksey
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/jas35%40mac.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Maven (was: WO 5.4 Linux Deployment)

2008-03-26 Thread Andrew Lindesay
That's it. If you build a .jar in this way it magically becomes a  
'framework' as far as WebObjects is concerned.


Off topic, but if anybody is interested, I have also created an ant  
task for making those as well.  It's quite nice because you can just  
put the info plist inline and it flattens the resource files and stuff  
sensibly;







NSExecutable
${framework.name}
CFBundleExecutable
${framework.name}
CFBundleIdentifier
nz.co.lindesay.LEWOStuff
CFBundleShortVersionString
${build.version}





		
	
	value="${DSTAMP}${TSTAMP}"/>





		
		
















___
Andrew Lindesay
technology : www.lindesay.co.nz
business : www.silvereye.co.nz



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]