/etc/pf.conf: cannot define table: Cannot allocate memory


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers /etc/pf.conf: cannot define table: Cannot allocate memory
# 1  
Old 11-22-2014
/etc/pf.conf: cannot define table: Cannot allocate memory

I've been working on a script with pf for a while and so far it is half way working. It handles smaller lists of ips I add to tables fine. However, anything larger I get the following error:

Code:
/etc/pf.conf:45: cannot define table table_name: Cannot allocate memory

I looked through some documentation on pf and found that by default it doesn't allow tables to have more than 200,000 entries. I found the lists I had this size and split into lists of 100,000. Then I tried 50,000 and 25,000 but I kept getting this error.

I also tried increasing my limits in pf:

Code:
# pfctl -sa | tail -n 5
LIMITS:
states        hard limit    20000
src-nodes     hard limit    20000
frags         hard limit    10000
table-entries hard limit 60000000

Any suggestions much appreciated.

---------- Post updated 11-22-14 at 07:56 AM ---------- Previous update was 11-21-14 at 12:56 PM ----------

Turns out after a LOT of trial and error this was just due to a syntax error in one of my table files that "pfctl -nf" was not picking up. I commented out that line and it now runs perfect.

Mods: You can go ahead and mark this one solved.
# 2  
Old 11-22-2014
You could do that yourself too, but, done. Glad you figured it out. Smilie For the record, we wouldn't have been able to tell that without you posting your scripts.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

unable to allocate enough memory

On SunOS 10 get an error when starting a large Java process with over 2Gb memory. Error occurred during initialization of VM Could not reserve enough space for object heap i have 32G memory !! , swap = 31G Please any advice !!! (3 Replies)
Discussion started by: moata_u
3 Replies

2. Programming

How to allocate memory to a string in C?

hi I want to take string as a input from user and the string is very very length. From the lengthy string i have to substring take first 16 letters, then next 8 letters,................... Please guide me how to write program to take lengthy string from user and sub string it. Thanks (4 Replies)
Discussion started by: atharalikhan
4 Replies

3. Linux

shmget failed - cannot allocate memory

Hi, In my proj, one process was running for 2 days. after 2 days its throwing an error message "shmget failed cannot allocate memory". the same problem happened every time.i.e. i can reproduce the same issue if my process is running for every 2 days for a same operation.Within this 2 days there... (1 Reply)
Discussion started by: ManoharanMani
1 Replies

4. Linux

shmget failed - cannot allocate memory

Hi, In my proj, one process was running for 2 days. after 2 days its throwing an error message "shmget failed cannot allocate memory". the same problem happened every time.i.e. i can reproduce the same issue if my process is running for every 2 days for a same operation.Within this 2 days there... (1 Reply)
Discussion started by: ManoharanMani
1 Replies

5. SuSE

shmget failed - cannot allocate memory

Hi, In my proj, one process was running for 2 days. after 2 days its throwing an error message "shmget failed cannot allocate memory". the same problem happened every time.i.e. i can reproduce the same issue if my process is running for every 2 days for a same operation.Within this 2 days there... (1 Reply)
Discussion started by: ManoharanMani
1 Replies

6. UNIX for Advanced & Expert Users

Oracle how many memory allocate really

hi... i want to find oracle allocate how many memory really.. i execute this code to list memory on unix system : ps -eo pmem,args | sort -k 1 -r -n outputs ; %mem command 12.9|ora_smon_RTX 12.9|ora_s000_RTX 12.9|ora_reco_RTX 12.9|ora_qmnc_RTX... (2 Replies)
Discussion started by: utoptas
2 Replies

7. UNIX for Advanced & Expert Users

How to allocate memory

Hi, I have 2 systems with same hardware and software. One system is giving me error "Error occurred during initialization of VM Could not reserve enough space for object " when I tried to increase JBoss App's heap size to 2GB while the other system is running fine without any issue. Is there... (5 Replies)
Discussion started by: ravi3553
5 Replies

8. UNIX for Advanced & Expert Users

unable to allocate enough memory

On SunOS 5.8 I get an error when starting a large Java process with over 2Gb memory. Error occurred during initialization of VM Could not reserve enough space for object heap When stopping several other Java processes we can start this process. This seems to indicate that we don't have... (11 Replies)
Discussion started by: rein
11 Replies

9. Programming

how allocate virtual memory

Hi Folks can any body suggest how to allocate virtual memory any function for that (2 Replies)
Discussion started by: munnu
2 Replies

10. UNIX for Dummies Questions & Answers

Unix Help - allocate more memory to /tmp

Hi Guys I using Solaris 8 and I need to change the size of my /tmp file. Was wondering does anyone know how to do this. Thanks Carson (1 Reply)
Discussion started by: cmackin
1 Replies
Login or Register to Ask a Question