why HtmlAdaptor is so slow

version; JDMK5, JDK5

Serverside code

htmlAdaptor = new HtmlAdaptorServer();

htmlAdaptor.setPort(8082);

ObjectName htmlAdaptorObjectName = null;

HIBServer.MBeanSvr.registerMBean(htmlAdaptor, htmlAdaptorObjectName);

HIBHtml4CmdParser htmlParser = new HIBHtml4CmdParser();

ObjectName parserObjName = registerMBean(HIBServer.MBeanSvr,"HtmlParser",htmlParser);

((HtmlAdaptorServer) htmlAdaptor).setParser(parserObjName);

client side code:

httpcon = (HttpURLConnection) url.openConnection();

*InputStream in = httpcon.getInputStream();

in lan environment, it works well.

but in complex lan env, it will take 30 seconds in *

any suggestion?

[724 byte] By [BEANSa] at [2007-11-15]
# 1

Hi,

Could that be a DNS issue? Sometimes resolving machines names takes quite a while.

If you're running on UNIX (Linux/Solaris) you might want to use the command 'truss'

(trace system calls) to figure that out...

You might also want to switch on the trace.

If the HTML Adaptor is from OpenDMK/JDMK the logger names to activate

will be:

com.sun.jdmk.level=FINEST

Refer to the JDMK documentation for more info on how to activate traces

through the java.util.logging API:

http://docs.sun.com/app/docs/doc/816-7608/6mdjqgni6?q=traces&a=view

Hope this helps,

-- daniel

JMX, SNMP, Java, etc...

http://blogs.sun.com/jmxetc

dfuchsa at 2007-7-12 > top of java,Core,Monitoring & Management...