# Hugo is killed when building

**URL:** <https://answers.netlify.com/t/hugo-is-killed-when-building/39718>\
**Category:** Support\
**Tags:** building\
**Created:** [June 21, 2021, 8:56am UTC](https://answers.netlify.com/t/hugo-is-killed-when-building/39718 "2021-06-21T08:56:18Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![wxtoutiao](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/wxtoutiao/32/26690_2.png) [@wxtoutiao](https://answers.netlify.com/u/wxtoutiao)\
**Post date:** [June 21, 2021, 8:56am UTC](https://answers.netlify.com/t/hugo-is-killed-when-building/39718/1 "2021-06-21T08:56:18Z")

</div>

When I build the project, it will be killed. the log is below:

```auto
Command was killed with SIGKILL (Forced termination): hugo --gc --minify

```

Is there some way to solve the problem? or what’s the reason? too many post files?

#### [epic-wescoff-fe8106.netlify.app](https://epic-wescoff-fe8106.netlify.app/)

---

<div class="post-metadata">

**Author:** ![hillary](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hillary/32/21132_2.png) [@hillary](https://answers.netlify.com/u/hillary)\
**Post date:** [June 22, 2021, 2:39pm UTC](https://answers.netlify.com/t/hugo-is-killed-when-building/39718/2 "2021-06-22T14:39:27Z")

</div>

Hi there, @wxtoutiao 👋

Could you share your package.json and a screenshot of your build settings please? Additionally, we have a few other threads that discuss SIGKILL. Take a look and see if the suggestions / solutions are applicable:

> [@Command was killed with SIGKILL (Forced termination): yarn build](https://answers.netlify.com/t/command-was-killed-with-sigkill-forced-termination-yarn-build/29845):
>
> Hi community, I have created app using CRA almost always. This time I have a simple vanilla JS written app, and it’s giving me build errors that I am not used to. I have tried different options that I read here and in SO, but its still failing. My package.json looks like: { "devDependencies": { "cypress": "^6.2.0" }, "dependencies": { "emmet": "^2.3.0", "serve": "^11.3.2", "start-server-and-test": "^1.11.7" }, "scripts": { "start": "PORT=5000 react-scripts start",…

> [@Gatsby deploy returns SIGKILL (it works locally)](https://answers.netlify.com/t/gatsby-deploy-returns-sigkill-it-works-locally/37708):
>
> Hello! I’m trying to deploy my website by means of gatsby build And while locally it works ok, on Netlify I’m getting a SIGKILL and no real explanation. My website is at [gianlucabelvisi.com](http://gianlucabelvisi.com) Git repo is: [GitHub - gianlucabelvisi/gianlucabelvisi.com](https://github.com/gianlucabelvisi/gianlucabelvisi.com.git) 3:50:59 PM: Build ready to start 3:51:01 PM: build-image version: 0582042f4fc261adc7bd8333f34884959c577302 3:51:01 PM: build-image tag: v3.7.6 3:51:01 PM: buildbot version: 3934dc3e65fec0466cd25051c676f6e727c64ab1 3:51:01 PM: Building without ca…

> [@Gatsby React App deploy failed from git](https://answers.netlify.com/t/gatsby-react-app-deploy-failed-from-git/35331):
>
> 8:53:50 PM: Build ready to start 8:53:53 PM: build-image version: be42e453d6c8f171cc2f654acc29c0a8b60e6d93 8:53:53 PM: build-image tag: v3.7.1 8:53:53 PM: buildbot version: 7bdd3b07036ec50a4d44b86fbdc90f52d3e07727 8:53:53 PM: Fetching cached dependencies 8:53:53 PM: Starting to download cache of 224.6MB 8:53:55 PM: Finished downloading cache in 2.083721901s 8:53:55 PM: Starting to extract cache 8:54:05 PM: Finished extracting cache in 9.415634724s 8:54:05 PM: Finished fetching cache in …

Let us know!

---

<div class="post-metadata">

**Author:** ![wxtoutiao](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/wxtoutiao/32/26690_2.png) [@wxtoutiao](https://answers.netlify.com/u/wxtoutiao)\
**Post date:** [June 23, 2021, 3:42am UTC](https://answers.netlify.com/t/hugo-is-killed-when-building/39718/3 "2021-06-23T03:42:48Z")

</div>

thanks, I use Hugo, no package.json. Is netlify has files limited? I update almost 100k post files. I think the problem may be related with files amount. Is there a way for publish over 1000k post files with netlify?

---

<div class="post-metadata">

**Author:** ![luke](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/luke/32/39_2.png) [@luke](https://answers.netlify.com/u/luke)\
**Post date:** [June 25, 2021, 2:43am UTC](https://answers.netlify.com/t/hugo-is-killed-when-building/39718/4 "2021-06-25T02:43:04Z")

</div>

Hi, @wxtoutiao. The issue appears to be that `hugo` is running out of memory and this is causing the OS to stop the running process.

There are several possible ways to resolve this:

- reduce the amount of memory that `hugo` is using
- upgrade to an Enterprise plan and add [High Performance Builds](https://www.netlify.com/pricing/#business-products-high-performance-build)
- build outside of Netlify and deploy using [manual deploys](https://docs.netlify.com/cli/get-started/#manual-deploys)

If there are other questions about this, please let us know.

---

<div class="post-metadata">

**Author:** ![wxtoutiao](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/wxtoutiao/32/26690_2.png) [@wxtoutiao](https://answers.netlify.com/u/wxtoutiao)\
**Post date:** [June 25, 2021, 8:31am UTC](https://answers.netlify.com/t/hugo-is-killed-when-building/39718/5 "2021-06-25T08:31:28Z")

</div>

Thanks a lot.  
I would switch Hugo to other tool because Hugo has no incremental static generation.  
Is there a way to incremental publish over 1000,000 posts with starter plan in netlify?

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [June 25, 2021, 9:47am UTC](https://answers.netlify.com/t/hugo-is-killed-when-building/39718/6 "2021-06-25T09:47:25Z")

</div>

> [@wxtoutiao](#):
>
> Is there a way to incremental publish over 1000,000 posts with starter plan in netlify?

Incremental generation is a SSG-specific feature, not something that Netlify controls. Netlify will run the command you ask it to and deploy if the build succeeds.

With that being said, Hugo is one of the fastest builders out there. If it’s getting killed because of memory issues, chances are other builders might be killed due to build timeout limit as the number of posts is too high. I’d advise you to test before you make a switch.

---

<div class="post-metadata">

**Author:** ![wxtoutiao](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/wxtoutiao/32/26690_2.png) [@wxtoutiao](https://answers.netlify.com/u/wxtoutiao)\
**Post date:** [June 26, 2021, 3:42am UTC](https://answers.netlify.com/t/hugo-is-killed-when-building/39718/7 "2021-06-26T03:42:27Z")

</div>

Thanks for your reply.  
How much the memory limited with starter plan?

---

<div class="post-metadata">

**Author:** ![wxtoutiao](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/wxtoutiao/32/26690_2.png) [@wxtoutiao](https://answers.netlify.com/u/wxtoutiao)\
**Post date:** [June 26, 2021, 4:04am UTC](https://answers.netlify.com/t/hugo-is-killed-when-building/39718/8 "2021-06-26T04:04:34Z")

</div>

> [@luke](#):
>
> - build outside of Netlify and deploy using [manual deploys](https://docs.netlify.com/cli/get-started/#manual-deploys)

Hi Luke,  
Is manual deploy with ‘netlify deploy’ incremental?

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [June 26, 2021, 4:53am UTC](https://answers.netlify.com/t/hugo-is-killed-when-building/39718/9 "2021-06-26T04:53:33Z")

</div>

It’s mentioned here: [[Support Guide] Making sure your builds use appropriate resources for Netlify's build system](https://answers.netlify.com/t/support-guide-making-sure-your-builds-use-appropriate-resources-for-netlifys-build-system/5349).

About incremental builds, I repeat, it’s not a Netlify feature. In Manual Deploy, you build your website locally and only upload the publish files to Netlify. So, if your SSG supports it, you should be able to run an incremental deploy locally and publish it.

---

<div class="post-metadata">

**Author:** ![wxtoutiao](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/wxtoutiao/32/26690_2.png) [@wxtoutiao](https://answers.netlify.com/u/wxtoutiao)\
**Post date:** [June 26, 2021, 5:26am UTC](https://answers.netlify.com/t/hugo-is-killed-when-building/39718/10 "2021-06-26T05:26:13Z")

</div>

Thanks for your quickly reply.

---

<div class="post-metadata">

**Author:** ![mph](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/mph/32/29007_2.png) [@mph](https://answers.netlify.com/u/mph)\
**Post date:** [September 1, 2021, 7:30pm UTC](https://answers.netlify.com/t/hugo-is-killed-when-building/39718/11 "2021-09-01T19:30:14Z")

</div>

My site could potentially have 200,000 files, but it would grow little by little. Rather than doing a manual deployment from my local machine with `netlify deploy`, what if I only pushed prebuilt HTML files to GitLab? I already have my own Python script for this. No SSGs in use.

I’m new to Netlify, and the `netlify deploy` command has me worried…cuz it wants my `public` directory name as input each time I invoke it, which would contain everything. Is there no way to tell this command exactly which file(s) to deploy?

Rather than doing a manual deployment from my local machine each time a new file is created, what if I only push fully-generated HTML files to GitLab? Would this completely alleviate the build phase and any bottlenecks associated with a gigantic site with ~200,000 files?

Or should I just throw in the Netlify towel and set up a Go+Fiber VPS and CloudFlare CDN?

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [September 2, 2021, 6:39am UTC](https://answers.netlify.com/t/hugo-is-killed-when-building/39718/12 "2021-09-02T06:39:59Z")

</div>

Hi @mph,

Yeah, that could work. You can commit your pre-built files to your repo and ask Netlify to simply publish it by keeping build command as a blank string (or simply `echo Hi!`).

---

<div class="post-metadata">

**Author:** ![mph](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/mph/32/29007_2.png) [@mph](https://answers.netlify.com/u/mph)\
**Post date:** [September 2, 2021, 4:15pm UTC](https://answers.netlify.com/t/hugo-is-killed-when-building/39718/13 "2021-09-02T16:15:15Z")

</div>

Thanks, @hrishikesh. That’s really good news! So what is the upper limit on number of files for Netlify Pro/Business plans?

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [September 2, 2021, 4:38pm UTC](https://answers.netlify.com/t/hugo-is-killed-when-building/39718/14 "2021-09-02T16:38:47Z")

</div>

Number of files has no realistic limit that I know of on any of the plans.
