[JBoss-user] [Clustering/JBoss] - Re: Caching of SLSB Proxies and Problems while lookup

2004-09-13 Thread cherold
Hi

I'dont remember where, but I found some hint about a solution:
It seems some weak reference are hold inside the JNDI classes and not freed when 
geting an Exception on stale objects.

So call the System GC (System.gc()) and get rid of them.

In my case it works fine, even if not yet so beatiful :-)

best regards



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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848008


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Problem with farming

2004-07-08 Thread cherold
Hi

We use Jboss 3.2.4 with JDK 1.4.2 on a Linux  Cluster with 3 nodes.

When using farming we recognized 2 main Problems:

1.
farming is very slow when hot deploying on three nodes. (take about 3 minutes for 8 
files with at total 3 MB).
When stopping two nodes , hot deploy and then restart the nodes , deploymnet takes 
about 5 sec.

2. When hot deploying on two nodes in most cases jars will be removed from secondary 
nodes. When redeploying a second time jars will be deployed correctly on all servers.

2004-07-07 13:14:59,393 [FarmMemberService] doUndeployment(), File: farm/File1.jar
2004-07-07 13:14:59,420 [FarmMemberService] doUndeployment(), File: farm/File2.sar
2004-07-07 13:14:59,536 [FarmMemberService] doUndeployment(), File: farm/File3.sar
2004-07-07 13:14:59,624 [FarmMemberService] doUndeployment(), File: farm/File4.sar
2004-07-07 13:14:59,653 [FarmMemberService] doUndeployment(), File: farm/File5.sar
2004-07-07 13:14:59,664 [FarmMemberService] doUndeployment(), File: farm/File6.sar
2004-07-07 13:14:59,669 [FarmMemberService] doUndeployment(), File: farm/resources.jar
2004-07-07 13:14:59,675 [FarmMemberService] doUndeployment(), File: farm/ioobject.jar

2004-07-07 13:14:59,703 [FarmMemberService] farmDeployment(), deploy locally: 
/var/jboss/server/cluster/tmp/ioobject.jar
2004-07-07 13:14:59,722 [FarmMemberService] farmDeployment(), deploy locally: 
/var/jboss/server/cluster/tmp/resources.jar
2004-07-07 13:14:59,960 [FarmMemberService] farmDeployment(), deploy locally: 
/var/jboss/server/cluster/tmp/File6.sar
2004-07-07 13:15:02,500 [FarmMemberService] farmDeployment(), deploy locally: 
/var/jboss/server/cluster/tmp/File5.sar
2004-07-07 13:15:03,815 [FarmMemberService] farmDeployment(), deploy locally: 
/var/jboss/server/cluster/tmp/File4.sar
2004-07-07 13:15:06,116 [FarmMemberService] farmDeployment(), deploy locally: 
/var/jboss/server/cluster/tmp/File3.sar
2004-07-07 13:15:07,227 [FarmMemberService] farmDeployment(), deploy locally: 
/var/jboss/server/cluster/tmp/File2.sar
2004-07-07 13:15:08,610 [FarmMemberService] farmDeployment(), deploy locally: 
/var/jboss/server/cluster/tmp/File1.jar



How farming copies files from node to node ? TCP/IP  socket connection ?

What things might hav influence on the performance of filetransfer in farming ?

Is there any Bug repoerted /fixed that deals with the above mentioned problem with 
deployment?

I will check jboss 3.2.5 in the next days.
May be this will bring be further...

regards
Christian



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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841329


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Is jbossha.jar fixed in jboss-3.2.5?

2004-07-08 Thread cherold
After downloading JBoss 3.2.5 I found in Web-Console for my
org.jboss.ha.framework.server.ClusterPartition
the following jgroups version:


JGroupsVersion (R) 
java.lang.String 
MBean Attribute. 
 2.2.4( $Id: Version.java,v 1.5 2004/04/28 18:44:58 belaban Exp $)
 
best regards

Christian

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841320


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Hot-deploy failure with farming in cluster

2004-04-05 Thread cherold
I'm usong JBoss 3.2.3 on Linux 2.4.x  JDK 1.4.2.

I'm using two nodes in a cluster using autoDiscovery with multicast.
For deployment I use farming, by copying the files to the farming directoryon node1.

In some cases it's running without problems (especialy if I'm testing it for get more 
information about the errorr).

But in many cases the file are deployed on node1 but are only deleted on node2. In 
most cases a touch on the files in farm/ on node1 redeploy the files and the second 
time they will be deployed also on node2.

It looks like all files are deleted but not copied to the second node.

Next it looks to me all files are deleted and then deployed.
Is it true, that all files will be deleted together and than deployed again.
It looks like an UNDEPLY and the a new DEPLOY.
I thought there should be a hotdeploy which do not undeploy all files first .
Just to be shure my running application is always online and reachable from client. If 
I undeploy the files, there might be a short time where the application is 
unavailable. On the local node I could see that all request will be served and each 
file will be redeployed each after the other.
Running request are finished first before redploying the jars.

Is this the same procedure on clustered nodes using farming?

Thanks in advance
Christian

This is my cluster.log when deploying succeed:
2004-04-01 09:01:34,521 INFO  [FarmMemberService] doUndeployment(), File: 
farm/5AdminBeans.jar
2004-04-01 09:01:34,522 INFO  [FarmMemberService] farmUndeployment(), removed 
file/var/jboss/server/cluster/farm/5AdminBeans.jar
2004-04-01 09:01:34,579 INFO  [FarmMemberService] doUndeployment(), File: farm/4app.sar
2004-04-01 09:01:34,994 INFO  [FarmMemberService] farmUndeployment(), removed 
file/var/jboss/server/cluster/farm/4app.sar
2004-04-01 09:01:35,048 INFO  [FarmMemberService] doUndeployment(), File: farm/4cc.sar
2004-04-01 09:01:35,048 INFO  [FarmMemberService] farmUndeployment(), removed 
file/var/jboss/server/cluster/farm/4cc.sar
2004-04-01 09:01:35,478 INFO  [FarmMemberService] doUndeployment(), File: 
farm/3Service.sar
2004-04-01 09:01:35,479 INFO  [FarmMemberService] farmUndeployment(), removed 
file/var/jboss/server/cluster/farm/3Service.sar
2004-04-01 09:01:35,589 INFO  [FarmMemberService] doUndeployment(), File: 
farm/3internals.sar
2004-04-01 09:01:35,590 INFO  [FarmMemberService] farmUndeployment(), removed 
file/var/jboss/server/cluster/farm/3internals.sar
2004-04-01 09:01:35,649 INFO  [FarmMemberService] doUndeployment(), File: 
farm/2common.sar
2004-04-01 09:01:35,650 INFO  [FarmMemberService] farmUndeployment(), removed 
file/var/jboss/server/cluster/farm/2common.sar
2004-04-01 09:01:35,664 INFO  [FarmMemberService] doUndeployment(), File: 
farm/1resources.jar
2004-04-01 09:01:35,664 INFO  [FarmMemberService] farmUndeployment(), removed 
file/var/jboss/server/cluster/farm/1resources.jar
2004-04-01 09:01:35,676 INFO  [FarmMemberService] doUndeployment(), File: 
farm/1ioobject.jar
2004-04-01 09:01:35,677 INFO  [FarmMemberService] farmUndeployment(), removed 
file/var/jboss/server/cluster/farm/1ioobject.jar
2004-04-01 09:01:35,739 INFO  [FarmMemberService] farmDeployment(), deploy locally: 
/var/jboss/server/cluster/tmp/1ioobject.jar
2004-04-01 09:01:35,812 INFO  [FarmMemberService] farmDeployment(), deploy locally: 
/var/jboss/server/cluster/tmp/1resources.jar
2004-04-01 09:01:36,269 INFO  [FarmMemberService] farmDeployment(), deploy locally: 
/var/jboss/server/cluster/tmp/2common.sar
2004-04-01 09:01:46,129 INFO  [FarmMemberService] farmDeployment(), deploy locally: 
/var/jboss/server/cluster/tmp/3internals.sar
2004-04-01 09:01:50,870 INFO  [FarmMemberService] farmDeployment(), deploy locally: 
/var/jboss/server/cluster/tmp/3Service.sar
2004-04-01 09:01:54,054 INFO  [FarmMemberService] farmDeployment(), deploy locally: 
/var/jboss/server/cluster/tmp/4cc.sar
2004-04-01 09:01:56,311 INFO  [FarmMemberService] farmDeployment(), deploy locally: 
/var/jboss/server/cluster/tmp/4app.sar
2004-04-01 09:01:59,892 INFO  [FarmMemberService] farmDeployment(), deploy locally: 
/var/jboss/server/cluster/tmp/5AdminBeans.jar

In some cases only the first part is done
doUndeployment(), 
farmUndeployment() .

and no files are deployed and all files in farm/ on nodes2 are deleted.








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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3829370


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - additional Info to Caching of SLSB Proxies and Problems whil

2004-03-29 Thread cherold
Hi again

still working on the same problem...

I recognized that I still get errors when trying to lookup home after restart of jboss 
from extern tomcat. I 'm running two jboss, one is located on the same mashine as my 
tomcat server.
It seems jboss-client-classes also tries to lookup on localhost even if the 
jnp.discoveryGroup does not fit (but the PartititionName).

So when trying to lookup from remote tomcat I get this error. sometimes 8 times before 
the client classes succeed in getting home from JNDI.

javax.naming.CommunicationException [Root exception is java.rmi.MarshalException: 
error marshalling arguments; nested exception is:
java.net.SocketException: Broken pipe]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:647)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
..
Caused by: java.rmi.MarshalException: error marshalling arguments; nested exception is:
java.net.SocketException: Broken pipe
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)
at org.jboss.ha.framework.server.HARMIServerImpl_Stub.invoke(Unknown Source)
at 
org.jboss.ha.framework.interfaces.HARMIClient.invokeRemote(HARMIClient.java:127)
at org.jboss.ha.framework.interfaces.HARMIClient.invoke(HARMIClient.java:196)
at $Proxy49.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:528)
... 47 more
Caused by: java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:105)
at 
java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1639)
at 
java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1548)
at java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:1146)
at java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1100)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1241)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
at java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java:1355)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:281)
at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:265)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:124)



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

http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827910>Reply 
to the post


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: JBOSS - DB2

2004-03-29 Thread cherold
Hi
I'm using DB2 8.1.4 with jboss 3.2.3.
I#m using the JCC type 4 driver because we found this to be faster than appdriver and 
much easier to install.
Therefor you need the files:

db2jcc.jar
and may be one or both of these
db2jcc_license_cisuz.jar db2jcc_license_cu.jar

It works fine in our case.

good luck
regards Christian


  
db2
jdbc:db2://IP:PORT/NAME
com.ibm.db2.jcc.DB2Driver
??
??
3
10
5000
15

TRANSACTION_READ_COMMITTED
  




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

http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827891>Reply 
to the post


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Caching of SLSB Proxies and Problems while lookup

2004-03-29 Thread cherold
Hi
I'm using JBoss 3.2.3 with SLSB in a Cluster SLSB are Called rom a seperate Tomcat 
machin (we do not use internal Tomcat).
For increasing performance, we cache Home and Remote Proxies in custom classes using 
RountRobin.
When restarting JBoss, we get in many cases (not always) Problems looking up for JBoss 
from Tomcat. When getting anny Exception while calling out working-classes we do 
reload the Homeinterface and recreate the Bean (Romote Proxy). while this could be 
happen dureng reboot we will wait for some seconds and retry for a couple of times.
In most cases I'll get NamingException (RemoteException: Service unavailable at 
org.jboss.ha.framework.interfaces.HARMIClient.invokeRemote(HARMIClient.java:158).
In most cases I can get a Home  after some retries (3-10).
In some rare cases I did not. 
I found there msut be a dependeciy to jnp-client.jar or jnet.jar.
I copied thes jars to Tomcat context and restarted the context.
Then lookups succeed. (when jnp and jnet in shared I had to restart Tomcat)


Before I had a second problem which was fixed (as far I could see):
I did not set jboss.bin.address so all services were listening on 0.0.0.0.
Then I got the first time after restart of Jboss the following error:
error marshalling arguments; nested exception is:
java.net.SocketException: Broken pipe

After binding al services to specific IP this was gone.


So how should I call SLSB from client?
Should I cache Proxies or should I recreate the bean each call ?
As far as I understood from docs, I should not recreate bean each call when using 
RoundRobin.

So, why does the lookup failed in some cases although these objects were bound to JNDI?

Any hints?

regards Christian

my config is:
JBoss 3.2.3 on Linux 2.4 JDK 1.4.2


MY_Partition
...
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827888#3827888";>View 
the original post

http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827888>Reply 
to the post


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: PreparedStatementCache

2004-03-23 Thread cherold
Hi
what do you meen hen you say " per transaction".
I use an JDBC DataSource. Transaktions are Handled by DB2 Database.
I do not use CMP or User Transacton in JBoss.
So my Conncetion Pool just Pools Connections for my Application.
Each Connection is used only by my custom Classes (called from SLSB).

I'm using direkt JDBC API calls. As far as I understood, there are no transaktion 
performed in JBoss.

So am I wrong ?

thanks for help (also some further help :-) )

Christian

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

http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827031>Reply 
to the post


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - PreparedStatementCache

2004-03-21 Thread cherold
Hi

Does anybody know if there is a runnning preparedStatementCache in Jboss 3.2.x ?
I use JBoss 3.2.3 with JDK 1.4.2 and DB2 8.1 in Linux.
I saw there is a property for the Datasource:
100
but setting this (with different values) didn't change anything.
On the DB side, it doesn't seem to cache client request for Prepare.

What I understood is, when caching is enabled the prepare call can be cacheched in the 
client Pool to avoid a network call (well the DB also caches the prepare internal to 
avoid recalculating thing each call).

When enabling the Trace for jboss... resource I couldn't see any hints about caching. 

In the JMX-Console the "JBoss LocalTransaction JDBC Wrapper" has an attribute 
"PreparedStatementCacheSize" with value null.

So how does it work , does it work and how to configure?

I could't find any documentation about it (only in the JCA docs the parameter).

Thanks



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

http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826795>Reply 
to the post


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user