cannot run "c_parser" on AWS EC2 instance (ubuntu trusty 14.4 amd64)

22 views
Skip to first unread message

yuanl...@gmail.com

unread,
Apr 6, 2018, 7:16:29 PM4/6/18
to TwinDB
Dear Sir, 

I have followed this URL: 
to try to recover a table that I accidentally deleted. 

When I came to run this command as root: "./c_parser -4f pages-ibdata1/FIL_PAGE_INDEX/0000000000000001.page -t dictionary/SYS_TABLES.sql > dumps/default/SYS_TABLES 2> dumps/default/SYS_TABLES.sql", the command quickly returned "Killed" and did not run succssfully. 

Because of this, I could'nt continue with the rest of steps. 

Appreciate for your helps!

Alan Wu

Aleksandr Kuzminsky

unread,
Apr 6, 2018, 7:22:33 PM4/6/18
to TwinDB
Hi Alan,

This is because c_parser needs 256M+ memory to start. I guess your instance doesn't have that much free memory.
You should add more swap space or launch bigger instance.

Alan W.

unread,
Apr 6, 2018, 9:15:47 PM4/6/18
to TwinDB
Hi Alsksandr, 

Thanks for replying to me.

I added a swap file and checked the swap space. Here is the output of command free:
root@ip-10-167-12-12:~/alan/projs/undrop-for-innodb# free
                        total       used         free     shared    buffers     cached
Mem:        544664     538324       6340        228       1028     347108
-/+ buffers/cache:     190188     354476
Swap:       524284          0         524284


After that, I ran the same command and I got the same error/message: "Killed". 

I'll try using a big size instance. 

Thanks!

Alan

Alan W.

unread,
Apr 6, 2018, 9:46:34 PM4/6/18
to TwinDB
Hi Alsksandr, 

Using a bigger size instance (6x more memory than my previous one) worked. Thanks a lot for your tip!

Alan
Reply all
Reply to author
Forward
0 new messages