Java Comm API, 50% CPU Usage, Serial Port I/O

G

Greg Pedder

Hello. I have an application that uses the Java Communications API to use a
modem. At startup,
the application checks to see what serial devices are connected. For each
serial device, the app
tries to write some "AT" commands to make sure it gets back "OK" from the
modem. At this point
all the ports are closed and the application goes into a serversocket accept
blocking call and waits
for any connections.

At this point, the application is not doing anything, no other threads
running. It's just sitting on the
blocking accept call. I check the CPU usage on the Solaris sever and it
shows this application
running at 50% CPU usage.

Very strange. I think it has something to do with the Java Communications
API, but I can't confirm
that. The server is a Sunfire 280 with 2 processors running JDK1.4. Has
anyone else seen these
CPU jumps by Java Comm API (SerialPort)? Thanks...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,962
Messages
2,570,134
Members
46,692
Latest member
JenniferTi

Latest Threads

Top