> Source: [sk158352](https://support.checkpoint.com/results/sk/sk158352)

# sk158352 - Cannot create new Domain

| Property | Value |
|----------|-------|
| Solution ID | sk158352 |
| Date Created | 2019-08-23 |
| Last Modified | 2019-08-26 |
| Technical Level | Advanced |
| Products | Multi-Domain Security Management Server |
| Versions | R82.10, R82.x, R81.20, R82, R82.20 |

## Symptoms

- * After the first failure, attempting to recreate the Domain with the same name fails immediately with "`Failed to create Domain server '[name]'. system folder for domain [domainid] is null`".   

* Domain creation fails with "`Task was interrupted because of server restart`" error.  

* Memory report in cpm.elg shows that CPM is reaching it's heap size limit (limit in MB is according to the machine's profile, but always 99%-100%):  

  `[Expert@Host:0]# tail -f $MDS_FWDIR/log/cpm.elg | grep -i "Memory Report"`  

  `
  ...
  DATE TIME,PID INFO cpm.commands.Server [main]: <<== Memory Report: Total Memory - 16384 MB; Used - 16382 MB, Free - 1 MB, Heap - 16382 MB, Non Heap - 230 MB, Percent Used - 99 %==>>`  
  `
  DATE TIME,PID INFO cpm.commands.Server [main]: <<== Memory Report: Total Memory - 16384 MB; Used - 16383 MB, Free - 0 MB, Heap - 16383 MB, Non Heap - 230 MB, Percent Used - 99 %==>>`  
  `
  DATE TIME,PID INFO cpm.commands.Server [main]: <<== Memory Report: Total Memory - 16384 MB; Used - 16383 MB, Free - 0 MB, Heap - 16383 MB, Non Heap - 230 MB, Percent Used - 99 %==>>`  
  `
  DATE TIME,PID INFO cpm.commands.Server [main]: <<== Memory Report: Total Memory - 16384 MB; Used - 16383 MB, Free - 0 MB, Heap - 16383 MB, Non Heap - 230 MB, Percent Used - 99 %==>>`

## Cause

Open WEB_API sessions that do not appear in the UI causes infinite PSQLWarning objects during creation. This fills the heap and causes the server to crash (the first error message). After that, creating the Domain with the same name will run into leftovers in DB, causing creation to fail again and erase those leftovers (the second error message) then, back to where we started.

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
