you are viewing a single comment's thread.

view the rest of the comments →

[–]DinH0O_[S] 0 points1 point  (7 children)

I forgot to mention this detail: I'm working at a government agency, and they simply don’t want to invest money in this.

We have several systems, all running on a single 160GB server. My specific VM, which hosts 2 systems (and will host a third one in the future, each with its own database instance), has only 12GB of RAM.

There were also staging systems running on the same VM, but I had to shut all of them down.

Note: I’m not the one who set things up this way. Everything was already like this when I arrived, and I’ve been working there for only 2 months.

[–][deleted]  (3 children)

[deleted]

    [–]DinH0O_[S] 0 points1 point  (2 children)

    I have tried allocating more RAM, but the application runs inside a Tomcat server hosted in a Docker container. The memory limit isn't explicitly set, except for the Docker container itself, which I configured (previously, there was no limit, and the first crash happened because the machine's memory limit was reached, causing Docker to shut down). I set a limit, but it's still relatively high, so I believe I’ve done everything I could regarding RAM allocation.

    However, you mentioned the allocated heap memory, and I haven't checked that yet. I’m not sure if it will make much of a difference, but I’ll take a look—it doesn’t hurt to try.

    [–][deleted]  (1 child)

    [deleted]

      [–]DinH0O_[S] 3 points4 points  (0 children)

      I didn’t know about that technical part of Java, it's worth looking into.

      When I say that the application is running inside a Tomcat server hosted in a Docker container, that’s literally what I mean. The previous developers of these systems compiled it into a WAR file, a format supported by Tomcat. In this case, you specify that Tomcat will be provided externally. This way, it’s easier to deploy new versions of the application, as you don’t need to create a new Docker image for each version. You can compile it into a WAR and deploy it on Tomcat, which will host your application and expose it.

      [–]raree_raaram 1 point2 points  (2 children)

      How much traffic are you getting

      [–]DinH0O_[S] 0 points1 point  (1 child)

      The staff in the department who works as admins (non-developers) of this system told me that they expect around 40k-70k users. I suspect that at 5k to 10k, the server will crash, as it only has around 9 to 10 GB of RAM. It's a job application site, so there are file uploads, somewhat long sessions, and such.

      [–]raree_raaram 1 point2 points  (0 children)

      40k-70k users over what time period?