Can't open port on a cluster using Parallel Computing Toolbox
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello!
I'm using an Altix cluster with the Parallel Computing Toolbox and Distributed Computing Server, under a Matlab job manager configuration.
I'm trying to open a TCP connection between the cluster and a PC.
According to the admins, all the relevant firewalls have been opened.
This is the code that I'm running on the cluster:
t=tcpip('hostname',7708,'NetworkRole','Server');
set(t,'Timeout',160);
fopen(t);
This uses the tcpip function from the Instrument Control Toolbox. fopen should block for 160 seconds or until the PC at 'hostname' (which of course is filled in) responds (calls fopen). I've tested this between two PCs.
Instead, fopen errors instantly with the message
Unsuccessful open: Unrecognized Windows Sockets error: 0:JVM_Bind
Any idea what could be happening? :)
Thanks!
Louise
댓글 수: 0
답변 (1개)
Abhinav
2023년 1월 16일
Hi Louise
This problem occurs on some Windows systems that have the IPv6 TCP Stack installed. If both IPv4 and IPv6 are installed on the computer, the Java Virtual Machine (JVM) may have problems closing or opening sockets at the operating system level.
Add the following JVM option: -Djava.net.preferIPv4Stack=true
This issue occurs on Windows 7 and Windows 2008 systems which have both IPv4 and IPv6 stacks installed by default.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Parallel Server에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!