Sobes.tech
Intern

Where are application logs stored in Linux OS? * What are signs of memory leaks in a JAVA application? * Serious performance degradation during long-term operation of the application; Errors in logs like memeryEmpty; FatalErrors leading to emergency shutdown of the application; Occurrence of lock screens;

sobes.tech AI

Answer from AI

39. Where are application logs stored in the Linux OS?

Application logs are usually stored in the /var/log/ directory. Depending on the application's configuration, they may have their own subdirectories or files, for example /var/log/myapp.log. Applications may also write logs to the system journal via syslog or journald.


40. Signs of memory leaks in a Java application:

  • Significant decrease in performance during prolonged operation due to increased garbage collection time.
  • Errors in logs related to memory shortage, such as OutOfMemoryError.
  • Continuous growth in memory consumption in monitoring (heap size does not stabilize).
  • Frequent and long garbage collector pauses.
  • In rare cases — application crash (FatalError).

Signs like "memoryEmpty" or "lock screens" are not standard indicators of memory leaks; they may be specific symptoms for a particular application or environment.