我有一个程序,它使用 java 和 selenium 每 20-30 秒随机登录一个网页,并在该网站上发帖。大约一个半小时后,我开始看到以下内容:
mach_ports_register() failed! XPC will not work in the child process: 0x10004002: (ipc/rcv) invalid name
mach_ports_register() failed! XPC will not work in the child process: 0x10004002: (ipc/rcv) invalid name
我该如何防止这种情况发生?我是否必须释放我的端口或内存或其他东西?我试图让它运行至少 10 天而没有任何问题。