Re: Linux Application Disk and Memory Usage



On 2007-08-02, Kushal <kushal.agarwal@xxxxxxxxx> wrote:

2. Dynamic dispace = maximum space need to accomodate log file, temp
files, etc.

This varies wildly based on both the application itself and the
particular policies of the system (e.g., log rotation). If your
application doesn't purge its log file itself, then in theory the
''maximum'' space is the size of the filesystem! So for this particular
requirement, you need to decide for what typical usages you want to
determine these numbers, and then either run your app under those
conditions, or from your knowledge of the code compute the sizes of
these resources. AFAIK there's no tool which will do that without your
intervention.

You should also evaluate failure modes: if a user does a kill -9 on your
app, what happens to the files that get left behind? If your normal
policy is to clean up disk resources, but it can't because of a hard
kill or reset, will the app be able to clean them up next time it
starts, or will they sit around and eat space? (Or worse, prevent the
app from starting?)

--keith

--
kkeller-usenet@xxxxxxxxxxxxxxxxxxxxxxxxxx
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

.



Relevant Pages

  • Log file access
    ... so if someone has the log file open in an editor when the app ... the app falls over. ... I could write to a second debug file ... first debug file open and the app starts to write to the second, ...
    (microsoft.public.vb.general.discussion)
  • Re: How do I diagnose a server that crashes every night?
    ... it some COBOL app that just prints an accounting report, ... However, if you start a service by submitting a batch job, then there ... If SYSTARTUP_VMS.COM calls a command procedure to start a service, ... you could consult the log file later on to find out why the ...
    (comp.os.vms)
  • Re: tired old processor.. (getting stuck at 100%)
    ... http://www.tomcoyote.org/hjt/ select to scan and save a log file and post ... Syware Doctor and Trojan Remover and AVG free complete ... > Now, I remember about 2 mo ago, AVG shield warned me of a trojan being ... I've scouted around the app, but can find no way to retrieve ...
    (microsoft.public.windowsxp.help_and_support)
  • File I/O Exception: The Process Cannot Open The File...
    ... App 1 is an asp.net Web application that is installed multiple times on the ... same server (one installation per Web site hosted on the server). ... exception per file (so 5 runtime exceptions would result in 5 exception log ... When a new log file is found, ...
    (microsoft.public.dotnet.languages.csharp)
  • help logging events to txt file
    ... I'd like some advise on a fool proof logging system. ... I have a windows app and need key events to be logged to a text file. ... All running instances of this app running must use the same log file. ... I see potential problems with more than one instance of the app trying to write at the same time and also with the file being open in notepad when an app tries to write to it. ...
    (microsoft.public.dotnet.languages.vb)