Can you confirm that this question relates to the Consumer version of McAfee Internet Security?
Java applications are more usually found in a business environment, where a different McAfee product would be used - in which case this question would belong somewhere in the Business section.
Yes, it is comsumer version. Because our JAVA application(offiline) runs on each user's machine, and many users installed McAfee Internet Security, especially real-time scanning will impact our application.
Which version (or versions) of Java is/are required to run this application?
Moved this out of Business to Home/General.
Hi Hayton, our application runs on JRE5 before, now we upgraded to JRE7.45. However, same issues happens.
We also get issue as attached.
error.png 40.7 K
You're asking about two things which may be connected, but may not be.
First, there is the performance issue.
our application become more and more slow or hang when running
You need Perfomance Monitor or something similar to see what's happening here. I don't know what debugging tools you might need but could probably find out. Is there any evidence that McAfee real-time scanning is the cause of these performance issues?
Second, there is the error at program startup : the log file you posted is showing only part of the total output.
This is a TCP connection problem which may, perhaps, be caused by the McAfee firewall blocking either incoming or outgoing traffic through a particular port. Make sure you've opened that port in the firewall settings.
The way you've asked the question implies that McAfee anti-virus or firewall is interfering with the normal operation of your program. Does it work as expected if you disable either or both real-time scanning and firewall?
As an aside, I see you're using Java 7.45 - this was superseded in January by 7.51, and the current version is 7.60
Update 60 is scheduled to expire on July 15, 2014 the same date as Update 55.
There are some discussions about the problems you're having over on the DJ Project at SourceForge - I assume that you are active in at least one of those threads. Did Chris Deckers specifically recommend that you look for AV- or firewall-related issues? If he did I couldn't see it anywhere. There was also a link he provided to a discussion on StackOverflow which might have been useful
but that link is now dead :
This question was voluntarily removed by its author.
As for the specific error messages in your logs, I can't say much about them.
1. "java.lang.IllegalStateException: Failed to connect to spawned VM!"
the Java environment or Java application is not in an appropriate state for the requested operation.
2. "Caused by: java.net.ConnectException: Connection refused: connect"
See if anything here is relevant to your situation -
(Port mismatch, incorrect host port combination, incorrect protocol in connection string?)
java.net.ConnectException: Connection refused: connect is one of the most common networking exception in Java. This error comes when you are working with client-server architecture and trying to make TCP connection from client to server.
While writing client socket code in Java, You should always provide proper handling of this exception.
Connection refused is a clear case of client trying to connect on a TCP port but not able to succeed
StackOverflow has a number of discussions about "Connection refused". The answers to the posters' questions always contain useful and insightful advice and suggestions. Here are a couple of threads which might be relevant to your problem -
(single vs multiple thread connections)
(firewalls, listening ports, localhost??, sockets)
If what you have is is a design or coding problem then SourceForge or StackOverflow is a better place to ask for help. If you can show a connection between the issues you're having and the presence or absence of McAfee programs then you might be better taking this to McAfee Support, although as the developer of the program you might not get much help from the Consumer support people : this is outside their remit unless it's a firewall issue.
Hi Hayton, Thanks for your detailed information.
Firstly, Yes I also notice that JRE7.45 was superseded. However, our application is offline appication for all users, not so necessary to upgrade so frequently. Unless it is necessary.
Secondly, Yes, slow and hang issue only come when McAfee Real-time scanning is turned on. It won't happen when disabled.
Thirdly, for connectio issues, it also happens when McAfee real-time scanning is on.
I will have a check if the port used in our application was blocked by McAfee. Besides, there is one configuration item to exclude scanning from compress file in McAfee Enterprise version, which will resolve this issue. Is there any similar solution in McAfee Internet Security?
there is one configuration item to exclude scanning from compress file in McAfee Enterprise version, which will resolve this issue. Is there any similar solution in McAfee Internet Security?
In McAfee Security Center's Real-Time Scanning settings there is a choice of whether to scan all files, or programs and documents only. That's it.
Real-time scanning of compressed files - especially large ones - will be slow if the scheduled-scan times for those files is any guide.
There isn't any easy way for me to assist you in resolving the performance problems you've got. I asked about Support options for you and if you go to Consumer Support they won't be able to help you much, if at all, unless you get your problem escalated well beyond Tier 1.
For the moment there's nothing more I can usefully add. You will hopefully be contacted soon by one of the senior techs from McAfee's support group, and perhaps he will be able to offer some advice.