python - Django-cities exits with "killed" -
i trying install django-cities on server 500mb ram. whenever run: manage.py cities
the system exits saying killed.
trying run: manage.py cities --import=country --force worked, guessing matter of running out of memory.
to bypass, tried refer package local copy of cities' data file. still didn't work.
any ideas on how can migrate data without having increase memory on server?
based on suggestion comments, solved setting temporary swap file.
if unfamiliar it, can follow these steps:
set swap file
touch /var/swap.img chmod 600 /var/swap.imgset swap file size
cd /var dd if=/dev/zero of=/var/swap.img bs=1024k count=1000this create 1gb swap file.
prepare disk image
mkswap /var/swap.imgactivate swap memory
swapon /var/swap.img
once done, can turn off swap image:
swapoff /var/swap.img more information on virtual memory , swap files can found here: https://www.digitalocean.com/community/tutorials/how-to-configure-virtual-memory-swap-file-on-a-vps#4
Comments
Post a Comment