I wrote a Java scheduler, every hour using:
new SAXBuilder().build(new URL(xxx));
or
HttpConnection.connect(new URL(xxx)); // jsoup library code
to get a big XML/HTML file.
My server maximum bandwidth limit is 2Mbits.
When this Java schedule code runs, I use over 2Mbits of bandwidth. (check it out)
So every time a user visits my server it is too slow.
How do I limit my Java schedule to use lower bandwidth?
(ex. 500Kbits)
I am using Ubuntu server.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…