You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Sahoo (JIRA)" <ji...@apache.org> on 2008/01/17 15:40:33 UTC

[jira] Created: (FELIX-465) Provide a way to turn off bundle caching

Provide a way to turn off bundle caching
----------------------------------------

                 Key: FELIX-465
                 URL: https://issues.apache.org/jira/browse/FELIX-465
             Project: Felix
          Issue Type: New Feature
          Components: Framework
    Affects Versions: 1.0.1
         Environment: JDK 1.5.0_06 on Solaris/x86
            Reporter: Sahoo
            Priority: Minor


The issue is discussed here in the forum mail thread:
http://www.nabble.com/Turn-off-bundle-cache-td14843520.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-465) Support a memory based bundle cache

Posted by "ted stockwell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12711779#action_12711779 ] 

ted stockwell commented on FELIX-465:
-------------------------------------

FYI, there is now a working bundle cache implementation in the felixgae project that supports a memory-based cache.
Also, you can now configure Felix to use a different cache via the felix.bundlecache.impl config property.

The felix4gae bundle cache uses Apache VFS.  
To use a ram-based cache set the org.osgi.framework.storage to ram:///felix-cache

You will have to extract and package the new cache yourself, its in src\main\java\org\apache\felix\framework\cache
In the future I will move this cache to its own package and jar it up separately so others can use it easier

> Support a memory based bundle cache
> -----------------------------------
>
>                 Key: FELIX-465
>                 URL: https://issues.apache.org/jira/browse/FELIX-465
>             Project: Felix
>          Issue Type: New Feature
>          Components: Framework
>    Affects Versions: felix-1.0.1
>         Environment: JDK 1.5.0_06 on Solaris/x86
>            Reporter: Sahoo
>            Priority: Minor
>
> The issue is discussed here in the forum mail thread:
> http://www.nabble.com/Turn-off-bundle-cache-td14843520.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (FELIX-465) Provide a way to turn off bundle caching

Posted by "Lucas Galfaso (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12560059#action_12560059 ] 

lgalfaso edited comment on FELIX-465 at 1/17/08 12:00 PM:
---------------------------------------------------------------

A third possibility is to implement the bundle cache over a virtual file system, and that the launcher uses a file system based virtual file system (and maintain the current behavior) but anyone is able to implement a memory based virtual file system

      was (Author: lgalfaso):
    A third possibility is to implement the bundle cache over a virtual file system, that defaults to a file system based virtual file system but anyone is able to implement a memory based virtual file system
  
> Provide a way to turn off bundle caching
> ----------------------------------------
>
>                 Key: FELIX-465
>                 URL: https://issues.apache.org/jira/browse/FELIX-465
>             Project: Felix
>          Issue Type: New Feature
>          Components: Framework
>    Affects Versions: 1.0.1
>         Environment: JDK 1.5.0_06 on Solaris/x86
>            Reporter: Sahoo
>            Priority: Minor
>
> The issue is discussed here in the forum mail thread:
> http://www.nabble.com/Turn-off-bundle-cache-td14843520.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-465) Provide a way to turn off bundle caching

Posted by "Lucas Galfaso (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12560059#action_12560059 ] 

Lucas Galfaso commented on FELIX-465:
-------------------------------------

A third possibility is to implement the bundle cache over a virtual file system, that defaults to a file system based virtual file system but anyone is able to implement a memory based virtual file system

> Provide a way to turn off bundle caching
> ----------------------------------------
>
>                 Key: FELIX-465
>                 URL: https://issues.apache.org/jira/browse/FELIX-465
>             Project: Felix
>          Issue Type: New Feature
>          Components: Framework
>    Affects Versions: 1.0.1
>         Environment: JDK 1.5.0_06 on Solaris/x86
>            Reporter: Sahoo
>            Priority: Minor
>
> The issue is discussed here in the forum mail thread:
> http://www.nabble.com/Turn-off-bundle-cache-td14843520.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-465) Provide a way to turn off bundle caching

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12560834#action_12560834 ] 

Richard S. Hall commented on FELIX-465:
---------------------------------------

Well, it sounds like the original request was to do (2), which is much simpler.

However, in order to support fragments, I think we need to refactor our bundle cache approach since it currently assumes that a bundle is self-contained and fragments break that abstraction. I am going to try to put some thought into re-working the caching API so that it will work for fragments and I will keep this requirement in mind too.

> Provide a way to turn off bundle caching
> ----------------------------------------
>
>                 Key: FELIX-465
>                 URL: https://issues.apache.org/jira/browse/FELIX-465
>             Project: Felix
>          Issue Type: New Feature
>          Components: Framework
>    Affects Versions: 1.0.1
>         Environment: JDK 1.5.0_06 on Solaris/x86
>            Reporter: Sahoo
>            Priority: Minor
>
> The issue is discussed here in the forum mail thread:
> http://www.nabble.com/Turn-off-bundle-cache-td14843520.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-465) Provide a way to turn off bundle caching

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605073#action_12605073 ] 

Richard S. Hall commented on FELIX-465:
---------------------------------------

At some point in time I might be willing to look into implementing a memory-based bundle cache, but I have to concentrate on fragments first. However, keep in mind that a memory-based bundle cache eliminates the possibility of having native libraries and will definitely consume a lot more memory.

> Provide a way to turn off bundle caching
> ----------------------------------------
>
>                 Key: FELIX-465
>                 URL: https://issues.apache.org/jira/browse/FELIX-465
>             Project: Felix
>          Issue Type: New Feature
>          Components: Framework
>    Affects Versions: felix-1.0.1
>         Environment: JDK 1.5.0_06 on Solaris/x86
>            Reporter: Sahoo
>            Priority: Minor
>
> The issue is discussed here in the forum mail thread:
> http://www.nabble.com/Turn-off-bundle-cache-td14843520.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-465) Provide a way to turn off bundle caching

Posted by "Robert Brown (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604636#action_12604636 ] 

Robert Brown commented on FELIX-465:
------------------------------------

I have interest in suggestion #1 from the first post. I'm currently considering what the best approach would be for launching an OSGi application over JNLP (ideally without signing and needing extra security). Even with signing, I would want to clean the cache prior to launching to ensure bundles that have been updated were updated before starting.

> Provide a way to turn off bundle caching
> ----------------------------------------
>
>                 Key: FELIX-465
>                 URL: https://issues.apache.org/jira/browse/FELIX-465
>             Project: Felix
>          Issue Type: New Feature
>          Components: Framework
>    Affects Versions: felix-1.0.1
>         Environment: JDK 1.5.0_06 on Solaris/x86
>            Reporter: Sahoo
>            Priority: Minor
>
> The issue is discussed here in the forum mail thread:
> http://www.nabble.com/Turn-off-bundle-cache-td14843520.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-465) Provide a way to turn off bundle caching

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559970#action_12559970 ] 

Richard S. Hall commented on FELIX-465:
---------------------------------------

The question I have is whether you mean:

   1. Do not use the disk at all or
   2. Delete the cache in between framework executions.

Approach (1) would be difficult (not impossible, but would like result in slower execution or much greater memory consumption). Approach (2) would be not be that difficult to add, but it somewhat falls under "launcher bloat" and our standard launcher is intended to be bare bones. However, if there is enough interest...

Another possibility is creating a new subproject for a sophisticated, highly bloated launcher :-) that people can use instead of the bare bones one.

> Provide a way to turn off bundle caching
> ----------------------------------------
>
>                 Key: FELIX-465
>                 URL: https://issues.apache.org/jira/browse/FELIX-465
>             Project: Felix
>          Issue Type: New Feature
>          Components: Framework
>    Affects Versions: 1.0.1
>         Environment: JDK 1.5.0_06 on Solaris/x86
>            Reporter: Sahoo
>            Priority: Minor
>
> The issue is discussed here in the forum mail thread:
> http://www.nabble.com/Turn-off-bundle-cache-td14843520.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-465) Support a memory based bundle cache

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall updated FELIX-465:
----------------------------------

    Summary: Support a memory based bundle cache  (was: Provide a way to turn off bundle caching)

To make the purpose of this issue clearer, I changed its summary. I will create another bug that addresses cache cleaning.

> Support a memory based bundle cache
> -----------------------------------
>
>                 Key: FELIX-465
>                 URL: https://issues.apache.org/jira/browse/FELIX-465
>             Project: Felix
>          Issue Type: New Feature
>          Components: Framework
>    Affects Versions: felix-1.0.1
>         Environment: JDK 1.5.0_06 on Solaris/x86
>            Reporter: Sahoo
>            Priority: Minor
>
> The issue is discussed here in the forum mail thread:
> http://www.nabble.com/Turn-off-bundle-cache-td14843520.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.