Drush out of memory when php memory limit is 1024M on my dedicate server. (CentOS)
Your particular setup might be one that (deliberately) has 2 php.ini files:


for Apache, e.g. on your server at: /etc/php5/apache2/php.ini (or similar path depending on your distro)
for command line (i.e. for drush) e.g. on your server at: /etc/php5/cli/php.ini (or similar path depending on your distro)


(I believe that this is perfectly normal kind of setup to have 2 files, I have this myself.)

You need to ensure that memory_limit is 1024M is set for /etc/php5/cli/php.ini(or similar path depending on your distro) php executed in the command line/terminal/console i.e. drush. You could also try memory_limit is -1 which allows the server to allocate as much memory as is available.