three dynamic tcp ports
by Donghui Wen
Hi,
On my jboss-4.2.1.ga server, I always found that there are three
dynamic ports are listening, they are bind to all ip addresses, even
I start jboss with "-b 127.0.0.1", I can still see those ports:
lsof -p 393 | grep LISTE
java 393 pnadmin 118u IPv6 285300 TCP
localhost:8083 (LISTEN)
java 393 pnadmin 120u IPv6 285304 TCP
localhost:1099 (LISTEN)
java 393 pnadmin 121u IPv6 285302 TCP
localhost:1098 (LISTEN)
java …
[View More]393 pnadmin 122u IPv6 285306 TCP *:34929
(LISTEN)
java 393 pnadmin 125u IPv6 285308 TCP *:34930
(LISTEN)
java 393 pnadmin 126u IPv6 285315 TCP *:34932
(LISTEN)
java 393 pnadmin 128u IPv6 285318 TCP
localhost:krb524 (LISTEN)
java 393 pnadmin 129u IPv6 285320 TCP
localhost:4445 (LISTEN)
java 393 pnadmin 130u IPv6 285321 TCP
localhost:4446 (LISTEN)
java 393 pnadmin 135u IPv6 285335 TCP
localhost:3873 (LISTEN)
java 393 pnadmin 152u IPv6 285454 TCP
localhost:webcache (LISTEN)
java 393 pnadmin 153u IPv6 285455 TCP
localhost:8009 (LISTEN)
java 393 pnadmin 155u IPv6 285457 TCP
localhost:8443 (LISTEN)
java 393 pnadmin 156u IPv6 285458 TCP
localhost:8444 (LISTEN)
java 393 pnadmin 185u IPv6 285565 TCP
localhost:8093 (LISTEN)
Does anyone know how to what are these ports (34929,34930,34931)? Is it
possible to make it bind to fixed port?
Thanks,
Donghui
[View Less]
15 years, 3 months
Unable to load balance and replicate session using jboss servers
by Neha Mehta
Hi,
I am trying to load balance JBoss servers(jboss 4.2.2) with session replication on windows.
I have tried using mod_jk(version 1.2.27) as connector, but unable to connect apache http server(version 2.2.13) to jboss server.
I have successfully load balanced jboss servers with mod proxy, but no session replication in this case.
Kindly help me to load balance servers using mod_jk as well as replicating session in case of mod proxy.
Settings for mod_jk :
I have done the following settings in …
[View More]httpd.conf:
LoadModule jk_module modules/mod_jk.so
Include conf/mod-jk.conf
In mod-jk.conf file:
JkWorkersFile conf/workers.properties
JkShmFile logs/mod_jk.shm
JkLogFile logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
JkMount /* loadbalancer
<Location /jkstatus/>
JkMount status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
In workers.properties file:
worker.list=loadbalancer,status
worker.node1.port=8012
worker.node1.host=172.17.88.53
worker.node1.type=ajp13
worker.node1.lbfactor=1
worker.node1.cachesize=10
worker.node1.redirect=node2
worker.node2.port=8012
worker.node2.host=172.17.88.46
worker.node2.type=ajp13
worker.node2.lbfactor=1
worker.node2.cachesize=10
worker.node2.redirect=node1
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node1,node2
worker.loadbalancer.sticky_session=1
worker.status.type=status
The error that comes in apache server's log file is : No connection could be made because the target machine actively refused it.
-----------------------------------------------------------------------------------------------------------------------------------------
But when I used mod_proxy, I was able to load balance JBoss servers but unable to replicate session.
I did the following settings in httpd.conf for load balancing:
ProxyRequests On
ProxyVia On
ProxyPass / balancer://mycluster/
<Proxy balancer://mycluster>
BalancerMember https://172.17.88.46:8444 smax=10
BalancerMember https://172.17.88.53:8444 smax=1 loadfactor=20
</Proxy>
----------------------------------------------------------------------------------------------------------------------------------------------
JBoss settings :
In server.xml : <Engine name="jboss.web" defaultHost="localhost" jvmRoute="node1">
In web.xml : added the tag : <distributable/>
In jboss-web.xml : added the following cluster configuration :
<replication-config>
<replication-trigger>ACCESS</replication-trigger>
<replication-granularity>SESSION</replication-granularity>
</replication-config>
In jboss-service.xml : <attribute name="UseJK">true</attribute>
I am able to load balance the servers successfully using mod proxy but unable to replicate session.
Kindly let me know if I am missing something...
Thanks & Regards,
Neha Mehta
________________________________
This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
______________________________________________________________________
[View Less]
15 years, 3 months