IIPImage Server / memcached configuration

  • Raymond Frohlich

    We're demoing IIPImage Server, and have been very happy with it thus far.
    Thanks for creating a great piece of software.

    I've run into some issue getting memcached working properly with IIPImage
    Server and was hoping for some guidance.


        # Initialise the FCGI server - set some default values
        FastCgiServer /var/www/fcgi-bin/iipsrv.fcgi \
        -processes 4 \
        -initial-env LOGFILE=/tmp/iipsrv-dev.log \
        -initial-env VERBOSITY=4 \
        -initial-env JPEG_QUALITY=75 \
        -initial-env MAX_IMAGE_CACHE_SIZE=1024 \
        -initial-env MAX_CVT=10000 \
        -initial-env FILESYSTEM_PREFIX=/media/cloudfiles/jp2/ \
        -initial-env MEMCACHED_SERVERS="" \
        -initial-env MEMCACHED_TIMEOUT=172800

    Memcached is running and active:

    # echo "stats settings" | nc 11211
    STAT maxbytes 1073741824
    STAT maxconns 1024
    STAT tcpport 11211
    STAT udpport 11211
    STAT inter NULL
    STAT verbosity 0
    STAT oldest 0
    STAT evictions on
    STAT domain_socket NULL
    STAT umask 700
    STAT growth_factor 1.25
    STAT chunk_size 48
    STAT num_threads 4
    STAT stat_key_prefix :
    STAT detail_enabled no
    STAT reqs_per_event 20
    STAT cas_enabled yes
    STAT tcp_backlog 1024
    STAT binding_protocol auto-negotiate
    STAT auth_enabled_sasl no
    STAT item_size_max 1048576

    When I visit my JP2 viewer, tiles are served as expected but nothing gets
    stored in my cache.

      #  Item_Size  Max_age   Pages   Count   Full?  Evicted Evict_Time OOM

    What am I missing?

  • Ruven

    Ruven - 2012-01-11

    Are you using the pre-built binary from oldmapsonline? If so, make sure you
    use the version linked to on the front page: http://help.oldmapsonline.org/jp
    Otherwise if you have built
    iipsrv yourself, make sure you have libmemcached installed. It should mention
    Memcached in the iipsrv log file if it has been correctly compiled.

  • Anonymous - 2015-05-20


    I have the same issue. The iipsrv.log shows the line:

    Memcached support enabled. Connected to servers: 'localhost' with timeout 86400

    Yet, Memcached doesn't seem to be used:

    #  Item_Size  Max_age   Pages   Count   Full?  Evicted Evict_Time OOM

    Any thoughts?

  • Ruven

    Ruven - 2015-05-20

    Are you sure the memcached server itself is running on localhost?



Cancel  Add attachments

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks