论坛

主页 » Liferay Portal » English » 3. Development

组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
anil kottam
Unable to login to the Liferay portal for all the users using Jmeter
2013年4月5日 上午12:42
答复

anil kottam

等级: Junior Member

帖子: 31

加入日期: 2012年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.
Benjamin Seiller
RE: Unable to login to the Liferay portal for all the users using Jmeter
2013年5月2日 上午9:05
答复

Benjamin Seiller

等级: New Member

帖子: 9

加入日期: 2012年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"
1about:config

and than changing the value of the key
1network.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
Benjamin Seiller
RE: Unable to login to the Liferay portal for all the users using Jmeter
2013年5月2日 上午9:18
答复

Benjamin Seiller

等级: New Member

帖子: 9

加入日期: 2012年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.