OK, the puzzle is solved, the memory limit is inherit from lshttpd when PHP is not started in suEXEC mode, under cPanel/WHM plugin, cPanel set the memory limit to 256MB, so when lshttpd started from WHM plugin, all lsphp processes get 256MB memory limit. Even after you restart LSWS from web...