Author Topic: java.net.ConnectException: Connection refused  (Read 16598 times)

onlyloveu2

  • Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
java.net.ConnectException: Connection refused
« on: October 27, 2015, 10:08:15 AM »
how to resolve following error ?


[root@client1 SPECvirt]# tail -f primectrl.out
2015-10-27 19:18:12:772 Tue Oct 27 19:18:12 CST 2015
2015-10-27 19:18:12:855 RMI server started: client1:9990
2015-10-27 19:18:12:864 [INFO] This is a perf-only benchmark run. Skipping active idle polling interval.
2015-10-27 19:18:12:865 PrimeControl: preparing client drivers.
2015-10-27 19:18:13:078 PrimeControl: starting clients...
2015-10-27 19:18:13:108 PrimeControl: PTDs not used for this benchmark run!
2015-10-27 19:18:13:108 PrimeControl: starting 4 masters.
2015-10-27 19:19:55:620 PrimeControl: waiting on 4 prime client(s).
.
2015-10-27 19:19:56:637 setting hostsReady = true
2015-10-27 19:22:13:010 PrimeControl: Workload and prime controller builds: 79
2015-10-27 19:22:40:318 specvirt: clock sync check completed successfully
2015-10-27 19:22:40:318 specvirt: initiating workload ramp-up.
2015-10-27 19:22:40:318 Polling start time = Tue Oct 27 19:42:41 CST 2015
2015-10-27 19:22:40:318 Polling end time   = Tue Oct 27 21:42:41 CST 2015
2015-10-27 19:27:42:824 PrimeControl: all workloads started.
2015-10-27 19:42:42:835 PrimeControl: all workloads in run time.
2015-10-27 19:42:42:835 PrimeControl: checking polling start response times...
2015-10-27 19:42:42:841 PrimeControl: sleeping for 0 sec
2015-10-27 19:42:42:841 PrimeControl: sending results counter reset command.
2015-10-27 19:42:42:842 PrimeControl: polling for 7200 sec
2015-10-27 21:42:42:842 PrimeControl: stopping result polling.
2015-10-27 21:42:42:842 PrimeControl: waiting for all workloads to stop...
2015-10-27 21:42:42:843 PrimeControl: [ERROR] remote exception occured  while calling resetCounters() on 10.4.3.71: java.rmi.ConnectException: Connection refused to host: 10.4.3.71; nested exception is:
        java.net.ConnectException: Connection refused
2015-10-27 21:42:52:842 PrimeControl: waiting for 2 masters to finish
2015-10-27 21:43:07:843 PrimeControl: waiting for 2 masters to finish
2015-10-27 21:43:22:843 PrimeControl: waiting for 2 masters to finish
2015-10-27 21:43:37:844 PrimeControl: waiting for 2 masters to finish
2015-10-27 21:43:52:844 PrimeControl: waiting for 2 masters to finish
2015-10-27 21:44:07:845 PrimeControl: waiting for 2 masters to finish
2015-10-27 21:44:22:845 PrimeControl: waiting for 2 masters to finish
2015-10-27 21:44:37:846 PrimeControl: waiting for 2 masters to finish
2015-10-27 21:44:52:846 PrimeControl: waiting for 2 masters to finish
2015-10-27 21:45:07:847 PrimeControl: waiting for 1 masters to finish
2015-10-27 21:45:22:847 PrimeControl: waiting for 1 masters to finish
2015-10-27 21:45:37:848 PrimeControl: waiting for 1 masters to finish
2015-10-27 21:45:52:848 PrimeControl: waiting for 1 masters to finish
2015-10-27 21:46:07:849 PrimeControl: waiting for 1 masters to finish
2015-10-27 21:46:22:849 PrimeControl: waiting for 1 masters to finish
2015-10-27 21:46:37:850 PrimeControl: waiting for 1 masters to finish
2015-10-27 21:46:52:850 PrimeControl: waiting for 1 masters to finish
2015-10-27 21:47:07:851 PrimeControl: waiting for 1 masters to finish
2015-10-27 21:47:22:851 PrimeControl: waiting for 1 masters to finish
2015-10-27 21:47:37:852 PrimeControl: waiting for 1 masters to finish
2015-10-27 21:47:52:852 PrimeControl: [ERROR] Maximum prime client wait time exceeded!
2015-10-27 21:47:52:853 PrimeControl: [ERROR] startMasters() failed!
2015-10-27 21:47:52:853 PrimeControl: sending abortTest() to prime clients.
2015-10-27 21:47:52:855 PrimeControl: [ERROR] Remote exception occured while calling getValidationRept() on client1:1096 for tile  0, benchmark 1: java.rmi.ConnectException: Connection refused to host: 10.4.3.71; nested exception is:
        java.net.ConnectException: Connection refused
2015-10-27 21:47:52:856 PrimeControl: [ERROR] exception occurred sending abortTest signal to specweb_Stub[UnicastRef [liveRef: [endpoint:[10.4.3.71:56074](remote),objID:[7b688c85:150a906a2db:-7ffe, 2390146351237327130]]]]. Exception was:
 java.rmi.ConnectException: Connection refused to host: 10.4.3.71; nested exception is:
        java.net.ConnectException: Connection refused
2015-10-27 21:47:54:515 PrimeControl: stopping remote client processes
2015-10-27 21:47:56:522 PrimeControl: stopping local client threads
2015-10-27 21:47:56:522 PrimeControl: terminating run. Please wait...
2015-10-27 21:47:57:526 specvirt: benchmark run failed!
2015-10-27 21:47:57:526 specvirt: Done!


« Last Edit: October 27, 2015, 10:12:22 AM by lroderic »

lroderic

  • Moderator
  • Full Member
  • *****
  • Posts: 167
  • Karma: +6/-0
Re: java.net.ConnectException: Connection refused
« Reply #1 on: October 27, 2015, 10:18:55 AM »
Is the polling process running on the webserver? To check, log into the webserver (this should be running on all VMs, by the way):

# cat /tmp/pollme.out

Please post the output of what you see.

onlyloveu2

  • Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
Re: java.net.ConnectException: Connection refused
« Reply #2 on: October 27, 2015, 10:20:59 AM »
[root@webserver ~]# ps -ef|grep java
root      2286     1  0 Oct26 ?        00:00:39 java -jar /opt/SPECpoll/pollme.jar -n webserver -int -web -p 8001
root      3532  3494  0 22:20 pts/1    00:00:00 grep java
[root@webserver ~]# cat /tmp/pollme.out
Creating RMI listener using RMI Registry port 8001
webserver/10.4.3.61:8001 ready...
2015-10-27 19:20:07:588 contacting host 'infraserver'...
webserver: 1445944807646
infraserver: 1445944807645
[root@webserver ~]#

lroderic

  • Moderator
  • Full Member
  • *****
  • Posts: 167
  • Karma: +6/-0
Re: java.net.ConnectException: Connection refused
« Reply #3 on: October 27, 2015, 10:24:53 AM »
Please zip up and post all the Client*.out files and Control.config.

onlyloveu2

  • Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
Re: java.net.ConnectException: Connection refused
« Reply #4 on: October 27, 2015, 10:33:39 AM »
too large, tell me your email, i will send to you.

onlyloveu2

  • Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
Re: java.net.ConnectException: Connection refused
« Reply #5 on: October 27, 2015, 10:42:02 AM »
SPECvirt_sc2013-ExampleVM-Setup-Guide-v1.01-log.7z.001

onlyloveu2

  • Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
Re: java.net.ConnectException: Connection refused
« Reply #6 on: October 27, 2015, 10:42:53 AM »
SPECvirt_sc2013-ExampleVM-Setup-Guide-v1.01-log.7z.002

onlyloveu2

  • Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
Re: java.net.ConnectException: Connection refused
« Reply #7 on: October 27, 2015, 10:43:35 AM »
SPECvirt_sc2013-ExampleVM-Setup-Guide-v1.01-log.7z.003

onlyloveu2

  • Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
Re: java.net.ConnectException: Connection refused
« Reply #8 on: October 27, 2015, 10:44:16 AM »
SPECvirt_sc2013-ExampleVM-Setup-Guide-v1.01-log.7z.004

onlyloveu2

  • Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
Re: java.net.ConnectException: Connection refused
« Reply #9 on: October 27, 2015, 10:45:00 AM »
SPECvirt_sc2013-ExampleVM-Setup-Guide-v1.01-log.7z.005

onlyloveu2

  • Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
Re: java.net.ConnectException: Connection refused
« Reply #10 on: October 27, 2015, 10:45:36 AM »
SPECvirt_sc2013-ExampleVM-Setup-Guide-v1.01-log.7z.006

lroderic

  • Moderator
  • Full Member
  • *****
  • Posts: 167
  • Karma: +6/-0
Re: java.net.ConnectException: Connection refused
« Reply #11 on: October 27, 2015, 11:00:59 AM »
The problem is that SSLv3 is disabled by default in updated versions of JDK. Please see https://www.spec.org/forums/index.php?topic=32.msg123#msg123 for the fix.

onlyloveu2

  • Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
Re: java.net.ConnectException: Connection refused
« Reply #12 on: October 27, 2015, 09:39:50 PM »
thank you. this problem skiped
« Last Edit: October 28, 2015, 07:37:17 AM by onlyloveu2 »