×
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
cowboyysj
Former Member
Message 1 of 9

McAfee Internet Security makes JAVA Web application slow

Hi all,

Currently our application  become more and more slow or hang when running. Sometimes it even starts up with error. This happens with McAfee Internet Security only (Real-time scanning) , can anybody advise how we can improve and avoid this issue? Thanks!

8 Replies
Hayton
Reliable Contributor
Reliable Contributor
Message 2 of 9

Re: McAfee Internet Security makes JAVA Web application slow

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.

cowboyysj
Former Member
Message 3 of 9

Re: McAfee Internet Security makes JAVA Web application slow

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.

Message was edited by: cowboyysj on 6/1/14 11:04:43 AM CDT
Hayton
Reliable Contributor
Reliable Contributor
Message 4 of 9

Re: McAfee Internet Security makes JAVA Web application slow

Which version (or versions) of Java is/are required to run this application?

exbrit
MVP
MVP
Message 5 of 9

Re: McAfee Internet Security makes JAVA Web application slow

Moved this out of Business to Home/General.

cowboyysj
Former Member
Message 6 of 9

Re: McAfee Internet Security makes JAVA Web application slow

Hi Hayton,  our application runs on JRE5 before, now we upgraded to JRE7.45. However, same issues happens.

We also get issue as attached.

Message was edited by: cowboyysj on 6/2/14 4:48:51 AM CDT
Hayton
Reliable Contributor
Reliable Contributor
Message 7 of 9

Re: McAfee Internet Security makes JAVA Web application slow

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

(http://javatester.org/version.html)

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

(http://stackoverflow.com/questions/7650006/error-establishing-connection),

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!"

http://craftingjava.blogspot.co.uk/2012/06/handling-javalangillegalstateexception.html

http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalStateException.html

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 -

http://javarevisited.blogspot.co.uk/2013/02/java-net-ConnectException-Connection-refused.html

(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 -

https://stackoverflow.com/questions/20242841/how-to-resolve-java-net-connectexception-connection-ref...

(single vs multiple thread connections)

https://stackoverflow.com/questions/6876266/java-net-connectexception-connection-refused

(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.

Message was edited by: Hayton on 02/06/14 15:42:42 IST
cowboyysj
Former Member
Message 8 of 9

Re: McAfee Internet Security makes JAVA Web application slow

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?

Hayton
Reliable Contributor
Reliable Contributor
Message 9 of 9

Re: McAfee Internet Security makes JAVA Web application slow

cowboyysj wrote:

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.

How Many Badges Can You Collect?
Ready for a little competition? Members like you are earning badges and unlocking perks for their helpful answers. Are you? Click here to find out.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community