×

System and method for utilizing generational file names for diagnostic data files

  • US 7,991,793 B2
  • Filed: 02/26/2008
  • Issued: 08/02/2011
  • Est. Priority Date: 02/26/2008
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for utilizing file names of diagnostic data files that are automatically generated by a runtime environment operatively coupled to a file system, the method comprising:

  • initializing a generation number (Z) corresponding to a current instance of the runtime environment such that a number of the diagnostic data files in the file system for all instances of the runtime environment does not exceed a predetermined maximum number of the diagnostic data files permitted in the file system and such that the file system keeps an old diagnostic data file that had been generated by a previous instance of the runtime environment while operating the current instance of the runtime environment, wherein said initializing is performed at startup of each instance of the runtime environment, wherein a file counter base (X) defines the predetermined maximum number of the diagnostic data files permitted in the file system, wherein each diagnostic data file of said diagnostic data files is uniquely identified by a respective file name (N) that comprises a respective file counter (F), and wherein said each diagnostic data file stores information selected from the group consisting of memory dumps of a physical platform in which the runtime environment operates, traces of the physical platform, heap statistics of the physical platform, a respective process identifier of a process in the physical platform that creates said each diagnostic data file, a respective timestamp when said each diagnostic data file is created, and combinations thereof;

    setting a file counter (F) for the current instance of the runtime environment to the initialized generation number (Z) such that the file counter (F) differentiates the diagnostic data files generated by the current instance of the runtime environment from the old diagnostic data file generated by the previous instance of the runtime environment;

    storing a diagnostic data file generated by the current instance of the runtime environment in the file system by a file name (N) comprising the file counter (F) from said setting; and

    subsequent to said storing, recalculating a new value of the file counter (F) from a current value of the file counter (F) by assigning a value resulting from a mathematical modulo operation on the current value of the file counter (F) incremented by one (1) and the file counter base (X), that is ((F+1) MOD X), to the new value of the file counter (F) such that another diagnostic data file generated by the current instance of the runtime environment is identified by another file name distinctive from the file name (N).

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×