Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 12-17-2006
sinofool sinofool is offline
Registered User
 
Name: Brent
Organization: University of Science & Technology, Beijing
Project: http://teach.ustb.edu.cn/
 
Join Date: Oct 2006
Posts: 38
Lightbulb Java locate registry wait.

I recently upgrade Ice from 3.0.1 to 3.1.1 .
And I found some error never show before in java client log.
It said java is waiting while createIndirectProxy and no timeout.
This is not often happend, but it eats threadpool of java one by one.

I found this in INSTALL file of IceJava:
Quote:
On Linux x86_64, we recommend using JRE 1.5.0_07 or an ealier version.
JRE 1.5.0_08 and JRE 1.5.0_09 introduced a bug that affects Freeze maps.
Will this bug affect IceJava client? Or it affects only using IceJava in server side.
__________________
Brent Bai
baibochun at gmail.com
xiaonei.com

Last edited by sinofool : 12-17-2006 at 11:56 PM.
Reply With Quote
  #2 (permalink)  
Old 12-18-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,564
Hi,

I don't think this bug is related to your problem, it affects Freeze maps so it shouldn't affect the Ice client or server runtime.

We would need more information to be able to help you with this issue. Which OS are you using? Which Java version? Can you post the thread dump of the Java client when it hangs?

Thanks,

Cheers,
Benoit.
Reply With Quote
  #3 (permalink)  
Old 12-18-2006
sinofool sinofool is offline
Registered User
 
Name: Brent
Organization: University of Science & Technology, Beijing
Project: http://teach.ustb.edu.cn/
 
Join Date: Oct 2006
Posts: 38
This is resin said:
Quote:
"resin-tcp-connection-*:80-345" daemon prio=1 tid=0x0000002b26396680 nid=0x54d7 in Object.wait() [0x00000000688d5000..0x00000000688d6e30]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at IceInternal.Outgoing.invoke(Outgoing.java:137)
- locked <0x0000002addfc0540> (a IceInternal.Outgoing)
at Ice._LocatorDelM.findAdapterById(_LocatorDelM.java :33)
at Ice.LocatorPrxHelper.findAdapterById(LocatorPrxHel per.java:36)
at Ice.LocatorPrxHelper.findAdapterById(LocatorPrxHel per.java:21)
at IceInternal.LocatorInfo.getEndpoints(LocatorInfo.j ava:99)
at IceInternal.IndirectReference.getConnection(Indire ctReference.java:168)
at Ice._ObjectDelM.setup(_ObjectDelM.java:258)
at Ice.ObjectPrxHelperBase.__getDelegate(ObjectPrxHel perBase.java:905)
- locked <0x0000002ade2c8f30> (a ustb.UserManagerPrxHelper)
at ustb.UserManagerPrxHelper.reloadUser(Unknown Source)
......
This is a AMD64 server running CentOS4.4 x86_64.
JDK version is jdk-1.5.0_09-b03.
Ice-3.1.1-java5

I am using ReplicatedGroup with this mod: Patch of IceGrid replica-group type None

This problem often appears when load heavy.
__________________
Brent Bai
baibochun at gmail.com
xiaonei.com
Reply With Quote
  #4 (permalink)  
Old 12-18-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,564
For some reasons the locate request to the locator hangs. It could be because the server to locate hangs on activation for example. Could this be the case here?

If not, you should try to reproduce the problem with more tracing. You could try with the following traces:
  • IceGridRegistry
    Code:
    IceGrid.Registry.Trace.Locator=2
    IceGrid.Registry.Trace.Server=2
  • IceGridNode
    Code:
    IceGrid.Node.Trace.Server=2
    IceGrid.Node.Trace.Adapter=2

Please post the traces here and I'll take a look at them!

Btw, could you also make sure that you have this patch applied?

Cheers,
Benoit.
Reply With Quote
  #5 (permalink)  
Old 12-18-2006
sinofool sinofool is offline
Registered User
 
Name: Brent
Organization: University of Science & Technology, Beijing
Project: http://teach.ustb.edu.cn/
 
Join Date: Oct 2006
Posts: 38
Yes, I applied the locator patch. I found the bug first.

I cannot reproduce the case at this time.
It mainly happend while "server stop" in admin console.

Is it related to the mod?
Patch of IceGrid replica-group type None
I changed the code of AdapterCache to make a hot backup for every service.
__________________
Brent Bai
baibochun at gmail.com
xiaonei.com
Reply With Quote
  #6 (permalink)  
Old 12-18-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,564
Sorry, I don't know if it's related to your change. The best to figure it out is to try without the change.

Cheers,
Benoit.
Reply With Quote
  #7 (permalink)  
Old 12-18-2006
sinofool sinofool is offline
Registered User
 
Name: Brent
Organization: University of Science & Technology, Beijing
Project: http://teach.ustb.edu.cn/
 
Join Date: Oct 2006
Posts: 38
I will try to reproduce it.
Thanks!
__________________
Brent Bai
baibochun at gmail.com
xiaonei.com
Reply With Quote
  #8 (permalink)  
Old 12-22-2006
sinofool sinofool is offline
Registered User
 
Name: Brent
Organization: University of Science & Technology, Beijing
Project: http://teach.ustb.edu.cn/
 
Join Date: Oct 2006
Posts: 38
I have reproduced the problem

I experienced the problem again.
The java thread pool dump indicate the thread is waiting on line 137# Outgoing.java.
These is the code:
Code:
if(timedOut)
{
	//
	// Must be called outside the synchronization of
	// this object
	//
	_connection.exception(new Ice.TimeoutException());

	//
	// We must wait until the exception set above has
	// propagated to this Outgoing object.
	//
	synchronized(this)
	{
		while(_state == StateInProgress)
		{
			try
			{
				wait();
			}
			catch(InterruptedException ex)
			{
			}
		}
	}
}
It seems _connection.exception didn't propagated back.

_connection.exception is an synchronized function, and the following synchronized(this) is also a bottle neck.

Does this a performance problem or an bug while dealing heavy load?
__________________
Brent Bai
baibochun at gmail.com
xiaonei.com
Reply With Quote
  #9 (permalink)  
Old 12-22-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,564
Sorry, it's impossible to say without more information. Could you please post the dump of the strack traces?

Cheers,
Benoit.
Reply With Quote
  #10 (permalink)  
Old 12-22-2006
sinofool sinofool is offline
Registered User
 
Name: Brent
Organization: University of Science & Technology, Beijing
Project: http://teach.ustb.edu.cn/
 
Join Date: Oct 2006
Posts: 38
The stack trace is the same with pervious posted in #3.
I cannot restart icegridnode to add trace parameters at this time.

Java stack trace is not enough to indicate the problem?
I am trying to get a chance to add trace options and restart icegridnode.

Thanks
__________________
Brent Bai
baibochun at gmail.com
xiaonei.com
Reply With Quote
  #11 (permalink)  
Old 12-22-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,564
Hi,

It would be better to post the stack traces of all the threads as there might be other threads involved with the issue.

The stack trace you posted indicates that the outgoing call is waiting for the exception to be propagated back. As you noticed, it's not being propagated back in a timely manner. This might be because the thread pool is busy doing something else (assuming you're using the thread pool concurrency model), that's why it would be helpful to see the other thread stack traces. Could you also please confirm which concurrency model you're using (thread pool or thread per connection)?

Cheers,
Benoit.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
IceV3.11 java client and vc7.0Server : java.lang.NullPointerException? zhoubin Help Center 2 11-24-2006 04:03 AM
Ice Registry blocking on restart Steffen Help Center 14 03-31-2006 10:17 AM
Registry and Querying moatas Help Center 8 10-25-2004 06:31 PM
Problem with IcePack.Registry boxban Help Center 0 10-15-2004 06:31 AM
icepack registry problems wolfram Help Center 4 09-01-2004 09:45 AM


All times are GMT -4. The time now is 12:50 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.