[jira] [Commented] (FELIX-5332) Serializer

2016-09-25 Thread David Leangen (JIRA)

[ 
https://issues.apache.org/jira/browse/FELIX-5332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15521550#comment-15521550
 ] 

David Leangen commented on FELIX-5332:
--

Thanks, [~bosschaert]!

> Serializer
> --
>
> Key: FELIX-5332
> URL: https://issues.apache.org/jira/browse/FELIX-5332
> Project: Felix
>  Issue Type: New Feature
>  Components: Converter
>Reporter: David Leangen
>Assignee: David Bosschaert
> Attachments: patch.diff
>
>
> Test case and a bit of code to show how a Serializer could work.
> To work as a Serializer, the type information needs to be embedded into the 
> output.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Resolved] (FELIX-5363) new URL(string) suffers under concurrency

2016-09-25 Thread Karl Pauls (JIRA)

 [ 
https://issues.apache.org/jira/browse/FELIX-5363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Karl Pauls resolved FELIX-5363.
---
   Resolution: Fixed
Fix Version/s: framework-5.8.0

I did some testing on my local machine having some 25 threads create and 
connect about 4M urls in a tight loop and yes, while my system has 8 cores it 
never gets above 400%. 

I reworked the URLHandlers and related classes all the way down to the service 
lookup to be lock free on the lookup up path (i.e., the one needed for URL 
creation and usage) and now the test runs in about half the time. More 
importantly, it does max out all my cores - in other words, it probably would 
do even better with more cores available. 

As the ct and some other tests I run still pass I committed this in r1762242. 

Please try it out and if it works for you close this issue - otherwise, feel 
free to reopen with updated info on performance problems.

In any case, good catch - this is definitely a good improvement. Thanks!

> new URL(string) suffers under concurrency
> -
>
> Key: FELIX-5363
> URL: https://issues.apache.org/jira/browse/FELIX-5363
> Project: Felix
>  Issue Type: Bug
>  Components: Framework
>Affects Versions: framework-5.4.0
>Reporter: Rob Ryan
>Assignee: Karl Pauls
> Fix For: framework-5.8.0
>
> Attachments: Merged-callees.csv
>
>
> Under moderate concurrency (25threads) and frequent use of new 
> java.net.URL(string) a bottleneck was seen with yourkit.  In one test 
> involving HTML page generation new URL(url) was seen to take 20% of time (via 
> yourkit).
> This was tracked to 
> org.apache.felix.framework.URLHandlers.getFrameworkFromContext() 
> URLHandlers.java which accounted for 99% of the time used by new URL(url).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Re: [VOTE] framework 5.6.0 and related subproject releases

2016-09-25 Thread Karl Pauls
On Sun, Sep 25, 2016 at 9:55 PM, Jean-Baptiste Onofré 
wrote:

> Sorry for the late vote.


No problem - thanks for voting!

regards,

Karl


>
> On Sep 25, 2016, 21:54, at 21:54, "Jean-Baptiste Onofré" 
> wrote:
> >+1 (binding)
> >
> >Regards
> >JB
> >
> >
> >
> >On Sep 25, 2016, 21:36, at 21:36, Karl Pauls 
> >wrote:
> >>+1
> >>
> >>regards,
> >>
> >>Karl
> >>
> >>On Thu, Sep 22, 2016 at 3:25 PM, Karl Pauls 
> >>wrote:
> >>
> >>> I would like to call a vote on the following subproject releases:
> >>>
> >>> resolver 1.10.0
> >>> framework  5.6.0
> >>> framework.security 2.6.0
> >>> main 5.6.0
> >>> main.distribution 5.6.0
> >>>
> >>> The main changelogs are in jira and at:
> >>> https://svn.apache.org/repos/asf/felix/releases/org.apache.
> >>> felix.resolver-1.10.0/doc/changelog.txt
> >>> https://svn.apache.org/repos/asf/felix/releases/org.apache.
> >>> felix.framework-5.6.0/doc/changelog.txt
> >>>
> >>> Staging repositories:
> >>>
> >>https://repository.apache.org/content/repositories/orgapachefelix-1139/
> >>>
> >>> You can use this UNIX script to download the release and verify the
> >>> signatures:
> >>> http://svn.apache.org/repos/asf/felix/trunk/check_staged_release.sh
> >>>
> >>> Usage:
> >>> sh check_staged_release.sh 1139 /tmp/felix-staging
> >>>
> >>> Please vote to approve this release:
> >>>
> >>> [ ] +1 Approve the release
> >>> [ ] -1 Veto the release (please provide specific comments)
> >>>
> >>
> >>
> >>
> >>--
> >>Karl Pauls
> >>karlpa...@gmail.com
>



-- 
Karl Pauls
karlpa...@gmail.com


Re: [VOTE] framework 5.6.0 and related subproject releases

2016-09-25 Thread Jean-Baptiste Onofré
Sorry for the late vote.



On Sep 25, 2016, 21:54, at 21:54, "Jean-Baptiste Onofré"  
wrote:
>+1 (binding)
>
>Regards
>JB
>
>
>
>On Sep 25, 2016, 21:36, at 21:36, Karl Pauls 
>wrote:
>>+1
>>
>>regards,
>>
>>Karl
>>
>>On Thu, Sep 22, 2016 at 3:25 PM, Karl Pauls 
>>wrote:
>>
>>> I would like to call a vote on the following subproject releases:
>>>
>>> resolver 1.10.0
>>> framework  5.6.0
>>> framework.security 2.6.0
>>> main 5.6.0
>>> main.distribution 5.6.0
>>>
>>> The main changelogs are in jira and at:
>>> https://svn.apache.org/repos/asf/felix/releases/org.apache.
>>> felix.resolver-1.10.0/doc/changelog.txt
>>> https://svn.apache.org/repos/asf/felix/releases/org.apache.
>>> felix.framework-5.6.0/doc/changelog.txt
>>>
>>> Staging repositories:
>>>
>>https://repository.apache.org/content/repositories/orgapachefelix-1139/
>>>
>>> You can use this UNIX script to download the release and verify the
>>> signatures:
>>> http://svn.apache.org/repos/asf/felix/trunk/check_staged_release.sh
>>>
>>> Usage:
>>> sh check_staged_release.sh 1139 /tmp/felix-staging
>>>
>>> Please vote to approve this release:
>>>
>>> [ ] +1 Approve the release
>>> [ ] -1 Veto the release (please provide specific comments)
>>>
>>
>>
>>
>>-- 
>>Karl Pauls
>>karlpa...@gmail.com


Re: [VOTE] framework 5.6.0 and related subproject releases

2016-09-25 Thread Jean-Baptiste Onofré
+1 (binding)

Regards
JB



On Sep 25, 2016, 21:36, at 21:36, Karl Pauls  wrote:
>+1
>
>regards,
>
>Karl
>
>On Thu, Sep 22, 2016 at 3:25 PM, Karl Pauls 
>wrote:
>
>> I would like to call a vote on the following subproject releases:
>>
>> resolver 1.10.0
>> framework  5.6.0
>> framework.security 2.6.0
>> main 5.6.0
>> main.distribution 5.6.0
>>
>> The main changelogs are in jira and at:
>> https://svn.apache.org/repos/asf/felix/releases/org.apache.
>> felix.resolver-1.10.0/doc/changelog.txt
>> https://svn.apache.org/repos/asf/felix/releases/org.apache.
>> felix.framework-5.6.0/doc/changelog.txt
>>
>> Staging repositories:
>>
>https://repository.apache.org/content/repositories/orgapachefelix-1139/
>>
>> You can use this UNIX script to download the release and verify the
>> signatures:
>> http://svn.apache.org/repos/asf/felix/trunk/check_staged_release.sh
>>
>> Usage:
>> sh check_staged_release.sh 1139 /tmp/felix-staging
>>
>> Please vote to approve this release:
>>
>> [ ] +1 Approve the release
>> [ ] -1 Veto the release (please provide specific comments)
>>
>
>
>
>-- 
>Karl Pauls
>karlpa...@gmail.com


Re: [VOTE] framework 5.6.0 and related subproject releases

2016-09-25 Thread Karl Pauls
+1

regards,

Karl

On Thu, Sep 22, 2016 at 3:25 PM, Karl Pauls  wrote:

> I would like to call a vote on the following subproject releases:
>
> resolver 1.10.0
> framework  5.6.0
> framework.security 2.6.0
> main 5.6.0
> main.distribution 5.6.0
>
> The main changelogs are in jira and at:
> https://svn.apache.org/repos/asf/felix/releases/org.apache.
> felix.resolver-1.10.0/doc/changelog.txt
> https://svn.apache.org/repos/asf/felix/releases/org.apache.
> felix.framework-5.6.0/doc/changelog.txt
>
> Staging repositories:
> https://repository.apache.org/content/repositories/orgapachefelix-1139/
>
> You can use this UNIX script to download the release and verify the
> signatures:
> http://svn.apache.org/repos/asf/felix/trunk/check_staged_release.sh
>
> Usage:
> sh check_staged_release.sh 1139 /tmp/felix-staging
>
> Please vote to approve this release:
>
> [ ] +1 Approve the release
> [ ] -1 Veto the release (please provide specific comments)
>



-- 
Karl Pauls
karlpa...@gmail.com