B4J Question Server Question

tufanv

Expert
Licensed User
Longtime User
Hello

I am running 3 jar applications ( non-ui) on my vps server. My server has 1 gb memory and those jar files consumes nearly much of the memory of my server. I talked with the support and they told me this.

My 3 jar files connects to a website and get some data and upload those data to my other server about every 30 minutes.

Is there a way to reduce the memory usage for my apps ? for example i use log in every app so every 30 minutes my app logs huge data. Maybe this consumes many memory ?

Or any different ideas ?
TY
 

Cableguy

Expert
Licensed User
Longtime User
You could try to run the apps in a local machine in order to establish if the logging makes any difference...
1GB ram is quite a lot for web apps! Specially non-ui
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
I agree, it would be really too much, I'm sure it is not so.

I think of two possibilities:

a) the data you transfer is all stored in memory (and you should change this);
b) your hosting provider is trying to sell you a different (more expensive) configuration :)

Thanks for answers

a) How can i know that if it is stored in memory ?
b) Hosting company is a good one . They helped me free some memory with adjusting apache webserver. =)
 
Upvote 0

Roycefer

Well-Known Member
Licensed User
Longtime User
You can use the jAWTRobot library to retrieve all sorts of memory usage statistics. You can see how memory usage evolves during certain tasks to see if those tasks are responsible for abnormally high memory usage.
 
Upvote 0
Top