We have done several tests with differents QUERY_STRINGS lengths.
With 4065 characters or less, the CGI runs fine but with 4066 no.
I think the environment size of our machine is 4KB.
Our OS is Solaris 2.5.1
Is the environment size equal to max bytes on queue(MSGMNB)?
Is this value tunable?