Can you please advice on the best way to check if a server is running using java? I mean I want to check a site for downtime. Is connecting to the server and getting the status (if 200 returned then it's up!) the right way?
Won't this slow down the server in case connection is established and status checked every 60 seconds?
I'm currently connecting using HttpConnection and getting the status code through HttpConnection.getResponseCode. If the code is 200 then the server's running fine. Does this method not affect the server, I mean won't it load the server with its own requests every minute?