Zip command for large folder

I am trying to zip a folder, its size is more than 3 GB. I used below command

 
zip -r foo middleware -x "*path*"

This command fails every time with message
"Filesize exceeded limit"

Can some one help me how to over come this problem and zip the entire folder without splitting it.

Thanks

Either your filesystem has limits that does not allow that size or, what is more probably that your ulimits don't allow such large files with that user. Do a

ulimit -a

and check for the value file size.
You can edit limits at /etc/security/limits.conf or a similar file in your distribution.

ulimit size is unlimited and still i get the same error. Is there any other option for zip command.