how can i know rabbitmq connection is busy - rabbitmq

I want to create rabbitmq connection add in list<connection> like a connection pool, but how can I know my connection is busy or no busy. I read rabbimtmq code find sessionManager, but not public.so. Help me I am new coder. thanks all!

sudo rabbitmqctl status
This should show you the status of rabbitmq. Let me know what you get.
Also an alternative try, if that's what you are looking for: https://stackoverflow.com/a/40234367/5381704

Related

Service openfire startup with script openfire.sh

look, always should run this command:
# cd /opt/openfire/bin/
# ./openfire.sh start
Openfire 3.6.4 [19-may-2009 17:43:25]
Console d'administration en écoute sur:
http://server.xxxxx.com:9090
https://server.xxxxx.com:9091
Index opened.
Index thread started
If I close the putty command line… the service openfire down… and after is neccessary again run… somebody know some way for always this service are permanently up ?
Thanks
All of the Openfire distributions should come with some kind of daemon or service script. It's hard to tell exactly what operating system you're on, but try typing something like this:
service openfire start
Also, I'm noticing that you're using a very old version of Openfire (it's from 2009!). I urge you to upgrade. Not only were many improvements and new features added, but security has been improved greatly over the years too.

Error While running Mule

While Running the Mule, I am facing the below error:
Timeout waiting for mule context to be completely started
Please let me know the work around solution for this. The same integration is working fine i.e the query fetching is happening fine with other system having mule but the same is not working in my system. Please Suggest a way to overcome this.
Thanks in Advance...!
Goutham ...Did you configured timeout in your flow? If it is configured ..
1. is it configured in Munit which we need to look into run and wait scope..
2. Or is this coming during the shutdown of mule ?
You can set a timeout value to enable the current flow to complete. However, there is no built in method or utility to check what messages are in flight. You can connect a profiler and see the active threads (or just a thread dump), this should provide you an overview of what’s happening at the JVM level.
To ensure all inflight messages are processed you can shutdown mule in two steps:
Stop the flow(s) manually (this will prevent new messages from coming)
Stop Mule
Alternatively, you can set shutdownTimeout to a milliseconds value for a flow; hwoever this is not a global value.
https://docs.mulesoft.com/mule-user-guide/v/3.8/starting-and-stopping-mule-esb
http://grepcode.com/file/repo1.maven.org/maven2/org.mule/mule-core/3.7.0/org/mule/transport/AbstractMessageDispatcher.java
The second link will provide you the internal implementation of Mule's AbstractMessageDispatcher .Hope this helps.
Thanks

PIVOTAL HAWQ- PXF connection is not working

We have small Hadoop-HAWQ cluster. in that, when trying to read external table.
prod# select * from ext_table
Getting error:
This pxf error is not letting us read external table via select query.
"remote component error (0) from 'xx.xx.xx.xx:51200': couldn't connect to host (libchurl.c:852)"
Tried :
Restarted PXF via ambari and all is Green.
Any help on it would be much appreciated ?
It looks like pxf-service is down in the nodes .Please make sure the pxf service is startedin all the namenodes and datanodes .Also make sure port 51200 is listening and is not bind to any other orphan process .
Please login to pxf nodes via terminal (not through ambari ) .
service pxf-service stop
service pxf-service start
To check for orphan process
netstat -anp |grep 51200
kill -9 processid
Thanks
Pratheesh Nair

Triggering 'connection reset by peer'

I would like to test the logging that happens in our app (an embedded ftp server) when a 'connection reset by peer' error occurs. This post explains the source of the error pretty well, but doesn't really explain how to cause one. Does anybody know a way to trigger this error for a TCP connection?
tcpkill seems to do the job well.

Idle Session in aix

where in AIX is timeot set for a telnet session?
I need to keep each session open indefinitely.
I check the following files
/etc/security/login.cfg
/etc/security/.profile
/etc/profile and my login files
either TMOUT=0 or i remove it form these files, but idle session still went out?
there is any services to start and stop for that?
Thanks
See this Tek-Tip forum post for the same issue.
In short:
check your TMOUT and TIMEOUT environment variables, if set, they could initiate closing of idle sessions
check /etc/security/login.cfg for a shell timeout in "logintimeout"
check your firewall, if it drops idle tcp connections after some time
Maybe you could also configure your clients to send null-packages from time to time to keep sessions alive.
GNU Screen is a more general solution to this problem.