Java classes are consuming lots of memory in linux server? -


i working on kind of smtp kinda protocol, made in java , run successfully. consuming 20 30 mb in laptop. later decided make the protocol live on internet. purchased servers(vps), domain. costed me lot. when tried run program on server shocked program consumption 800 900 mb each class running. thought may programming fault, tried lot recover problem not. later friend of mine suggested me test simple hello word program on same server, shocked program eating 900 mb of total ram.

what kinda of problem can ? fault in servers, or os , kernels versions ? problem of jvm linux kernels or older linux kernels. have tried older jvms no use. :(

i tried of popular flavors of linux worked same , had same problem on linux flavors. eating huge memory in cases. ( of them had linux kernel 2.6.xx)

but worked smooth , consumed expected memory in laptop. (about 30 50 mb). use linux in laptop. difference kernel above 3.1.xx . can problem ? disappointed behavior of servers , have lost lots of money in it. please tell me possible solutions, can problem of linux kernel or problem in programming.

is laptop running windows? i'll assume answer yes. memory values see reported in windows task manager not linux reports total resident memory.

i don't believe hello world taking 900 mb. if is, tells me jvm memory being reported, not app.

are running app on java ee app server tomcat or jboss? make big difference indeed.

the best advice search other questions showed how use linux tools nmap figure out memory being consumed.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -