Membrane admin console log limited number of messages

56 views
Skip to first unread message

Pfizer

unread,
Sep 6, 2016, 8:05:18 AM9/6/16
to membrane-monitor
I noticed that only the membrane admin console log could log the message request and response content. The membrane.log would log the summary i.e message response http code, message size.

Currently the membrane instance is run as task scheduler using Java 8 update 25. The effective max java heap size is 2Gb. Why it could only log 4 to 5 messages?

Does the limit due to :

1) Java version used? So far only Java 8 updated 25 exhibit this behavior.
2) Java max heap size?
3) Large message response - the largest is 50Kb

If yes, then it does not make sense since (2) is 2Gb and (3) is 50Kb.

Note that the proxy.xml was not updated and the task does not restarted either.


The admin console log details only log to memory. Is it possible to log the message response content to log file?

call log.jpg

Thomas Bayer

unread,
Sep 6, 2016, 8:13:20 AM9/6/16
to membrane...@googlegroups.com

Hi,

you can set the amount of memory used for the limited memory store. See below:

 

<spring:beans xmlns="http://membrane-soa.org/proxies/1/"

       xmlns:spring="http://www.springframework.org/schema/beans"

       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

       xsi:schemaLocation="http://www.springframework.org/schema/beans

                           http://www.springframework.org/schema/beans/spring-beans-4.2.xsd

                           http://membrane-soa.org/proxies/1/ http://membrane-soa.org/schemas/proxies-1.xsd">

 

<limitedMemoryExchangeStore id="limitedMemoryStore" maxSize="70000000" />

 

       <router exchangeStore="limitedMemoryStore" >

 

Cheers,

Thomas

 

 

Am 06.09.16, 13:06 schrieb "Pfizer" <membrane...@googlegroups.com im Auftrag von qod...@gmail.com>:

--
You received this message because you are subscribed to the Google Groups "membrane-monitor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to membrane-monit...@googlegroups.com.
To post to this group, send email to membrane...@googlegroups.com.
Visit this group at https://groups.google.com/group/membrane-monitor.
For more options, visit https://groups.google.com/d/optout.

Pfizer

unread,
Sep 7, 2016, 3:36:27 AM9/7/16
to membrane-monitor
Thanks Thomas. What's the recommended limitedMemoryStore value i.e for 8Gb of RAM machine?

Thomas Bayer

unread,
Sep 7, 2016, 3:54:26 AM9/7/16
to membrane...@googlegroups.com

Hi,

I would factor in some buffers, course the store guesses how many Memory it is consuming. Try 4 GB wait till the store is using it completely than have a look at the System Tab of the Admin console and see how many Free System Memory is available. Then you can adjust the value  up or down.

 

 

 

 

 

 

Cheers,

Thomas

 

 

Am 07.09.16, 09:36 schrieb "Pfizer" <membrane...@googlegroups.com im Auftrag von qod...@gmail.com>:

--

Pfizer

unread,
Sep 7, 2016, 7:51:46 AM9/7/16
to membrane-monitor
Thanks Thomas. Max  is 2Gb.

Is it possible to log the message request and message content to file so that if the membrane was restarted the log detail i.e message request and message response still there?
If yes then how to do it?



On Tuesday, September 6, 2016 at 8:05:18 PM UTC+8, Pfizer wrote:

Thomas Bayer

unread,
Sep 7, 2016, 8:01:03 AM9/7/16
to membrane...@googlegroups.com

Hi,

you can use the file-exchangestore, but it will just store the exchanges to disk. It will not make them available in the Calls tap of the Web Console.

 

See: the sample in the examples/file-exchangestore folder.

 

We are working currently on an API Management project that will store the request and responses into an elastic search engine. Have a look at: https://github.com/membrane/api-management

 

Cheers,

Thomas

 

Am 07.09.16, 13:51 schrieb "Pfizer" <membrane...@googlegroups.com im Auftrag von qod...@gmail.com>:

--

Pfizer

unread,
Sep 7, 2016, 8:05:48 AM9/7/16
to membrane-monitor
Does exchangestore support in 4.0.17? I am currently using this version.
does the stored disk format is human readable?


On Tuesday, September 6, 2016 at 8:05:18 PM UTC+8, Pfizer wrote:

Thomas Bayer

unread,
Sep 7, 2016, 8:17:39 AM9/7/16
to membrane...@googlegroups.com

It is supported since 1.5. The format is just the raw HTTP message.

 

Cheers,

Thomas

 

 

Am 07.09.16, 14:05 schrieb "Pfizer" <membrane...@googlegroups.com im Auftrag von qod...@gmail.com>:

--

Reply all
Reply to author
Forward
0 new messages