Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
+ Reply to Thread
Results 1 to 5 of 5

This is a discussion on VPS: Deleting Core Files - Cleaning up Disk Space in the VPS & Dedicated forum
Are core files regularly deleted (I have a linux VPS), or do I need to setup a cron job or something to delete them? Are ...

  1. #1
    Loyal Client
    Join Date
    Jan 2005
    Posts
    159

    VPS: Deleting Core Files - Cleaning up Disk Space

    Are core files regularly deleted (I have a linux VPS), or do I need to setup a cron job or something to delete them?

    Are there other temporary files that can be deleted to save disk space?

  2. #2
    JPC Dream Team JPC-Bilal's Avatar
    Join Date
    Nov 2006
    Posts
    1,057
    Hi akreider2,

    The core files are not deleted automatically so yes, you will have to setup a cron job for it. Regarding temporary files, usually log files take some space in the server that you can check and clear them. Also you can open a ticket with support to check your server and see what is taking up disk space in your server. Thank you.

  3. #3
    /dev/null JPC-Zishan's Avatar
    Join Date
    Apr 2008
    Posts
    257
    If you want to clear up these core files consuming your disk space then you can use the following command:

    find /home/USERNAME -name "core.[0-90-9]*" -type f -print | xargs rm -vf
    The above command will search the entire account for any file named core.xxxx and will delete it. Before running this command, I would recommend to first check that what will be deleted. You can check it by running:

    find /home/USERNAME -name "core.[0-90-9]*" -type f -print
    It will show all the core files present in your account. You should go through the list and if you see that all are core dump files then use the first command to delete all the core dump files to free up the space.
    Zishan - L3 - Shift Lead | JaguarPC

    Helpful Links
    Knowledge Base | Network Status | Current Specials

  4. #4
    Loyal Client
    Join Date
    Jan 2005
    Posts
    159
    I found all the core files. I deleted two old ones (from six weeks ago). There are also twelve 89mb files in the / directory which are from today.

    My guess is that these are either in use, or maintained/automatically deleted - as I haven't done anything special today that would have created them. They total 1 GB of disk space - which is a lot of my total.

    Should I delete them?

  5. #5
    /dev/null JPC-Zishan's Avatar
    Join Date
    Apr 2008
    Posts
    257
    Core files can be deleted. Basically when any process crashes or get terminated abnormally then kernel dumps the data residing in the memory at that time in to a core file so that it can be debugged later to find the cause of abnormal termination. The detailed and well explained description can be found at Core dumps. Use the “file” command to see what application caused them to be generated. For example:

    $ file core.1234

    They were most likely the result of a PHP process crashing for some reason that would require further investigation, such as with gdb:

    $ gdb /usr/bin/php core.1234
    Zishan - L3 - Shift Lead | JaguarPC

    Helpful Links
    Knowledge Base | Network Status | Current Specials

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts