留言板

Unable to login to the Liferay portal for all the users using Jmeter

anil kottam,修改在10 年前。

Unable to login to the Liferay portal for all the users using Jmeter

Junior Member 帖子: 31 加入日期: 12-5-7 最近的帖子
Hi all,

I am doing load testing for my Liferay application using Jmeter. I am recording all the requests coming to the Server using Jmeter Proxy Server, the problem I am facing is when ever a user try to login to the Portal .. I am getting the following exception :

java.io.EOFException
at java.util.zip.GZIPInputStream.readUByte(GZIPInputStream.java:264)
at java.util.zip.GZIPInputStream.readUShort(GZIPInputStream.java:254)
at java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:163)
at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:78)
at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:90)
at org.apache.http.client.entity.GzipDecompressingEntity.decorate(GzipDecompressingEntity.java:56)
at org.apache.http.client.entity.DecompressingEntity.getDecompressingStream(DecompressingEntity.java:68)
at org.apache.http.client.entity.DecompressingEntity.getContent(DecompressingEntity.java:82)
at org.apache.http.conn.BasicManagedEntity.getContent(BasicManagedEntity.java:89)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:299)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1088)
at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:211)


With help of Jmeter I could make performance testing for the static content only. Most of the load on our Application is on dynamic content pages, so in order to perform the test successfully the users must login to the portal. I don't have any issues with login wrt other domains like gmail, facebook etc. So please kindly help me to resolve the above issue.
thumbnail
Benjamin Seiller,修改在10 年前。

RE: Unable to login to the Liferay portal for all the users using Jmeter

New Member 帖子: 9 加入日期: 12-9-5 最近的帖子
Hi Anil,

just had the same problem and solved it.
Try deactivating the gzip compression during recording:
Either by a) telling your browser not to accept/request it or by b) deactivating it in the application server.
In Firefox you can do a) by using the "url"
about:config

and than changing the value of the key
network.http.accept-encoding

from
gzip, deflate
to
deflate
I haven't tried b) but it should work as well, at least for a test system - but a) seems the easiert alternative.

After the recording you can and should (loading-speed for websites!) turn the gzip encoding back on.
If you really want to deliver gzip compressed html/asset during the tests as well you can probably re-add the needed header manually either via editing the saved config-file of the test (search for "Accept-Encoding" or "deflate") or with an HTTP Header manager node by adding the needed header
Accept-Encoding => gzip, deflate

Let me know if the second part works as expected

Cheers,
Benjamin

ps: It seems we are the only two people with this issue, so this is probably an issue between JMeter and Liferay
thumbnail
Benjamin Seiller,修改在10 年前。

RE: Unable to login to the Liferay portal for all the users using Jmeter

New Member 帖子: 9 加入日期: 12-9-5 最近的帖子
Just tested using gzip encoding in the tests: Just getting red/warnings. It seems that at least with LR 6.0.11 gzip and JMeter don't work together.
If this is a show stopper for you, you could open up a ticket with Liferay. Let me know if you do - i'd like to see what might be the issue.