You are here

leelight's blog

Tomcat Socket accept failed java.io.IOException: Too many open files

Blog Terms: 

If you open many HTTP connections during the same time in your service in Tomcat, you will probably get such exception: Socket accept failed java.io.IOException: Too many open files.

How to fix:

open $tomcat/bin/catalina.sh

add this line:
ulimit -n 8192

or
ulimit -n //this will set unlimit

then restart tomcat and start with 'catalina start', Java will run with the given limit above.

Route-Me: iOS map library

Blog Terms: 

Route-Me: iOS map library

Route-Me is an open source map library that runs natively on iOS. It's designed to look and feel much like the inbuilt iOS map library, but it's entirely open, and works with any map source.

Currently, OpenStreetMap, Microsoft VirtualEarth, CloudMade, OpenAerialMap, OpenCycleMap, SpatialCloud, TileStream7, and two offline-capable, database-backed formats (DBMap and MBTiles) are supported as map sources.

https://github.com/route-me/route-me

OSM mobile open source project

1. http://osmand.net/
you will find open source project for Android, WP7, WP8, WinRT.

2. osmdroid, Offline map library with OSM
http://code.google.com/p/osmdroid/

3. mapsforge, android library with OSM, support also offline
http://code.google.com/p/mapsforge/

4. osmbonuspack
osmdroid is a library to interact with OpenStreetMap data inside an Android application. It offers an almost full/free replacement to Android map objects: MapView, MapController, Overlays, etc.

http://code.google.com/p/osmbonuspack/

5.
Using OSMDroid for Offline mapping in Android

Google Maps is not available on Amazon tablet devices

Blog Terms: 

Google Maps is not available on Amazon tablet devices, if you need map, Amazon Maps API is required to be migrated.

Ref:
https://developer.amazon.com/sdk/maps/migrating.html

cloudmade, a company to offer geocode, map tile cache, routing service

Blog Terms: 

http://cloudmade.com/

A company to offer geocode, map tile cache, routing service.
Can be used with OSM android SDK.

Ref:
http://code.google.com/p/osmdroid/wiki/HowToUseJar

Build JBoss AS 7.1.2.Final

Blog Terms: 

In one project Jboss EAP 6.0.0 was required, but it is commercial product from Red Hat, before i get the lisence from Red Hat, i need go on working. Jboss EAP 6.0.0 was built on base of JBoss AS 7.1.2.Final , only a little bit different in Branch.

But there is no built version for JBoss AS 7.1.2.Final in Jboss website:
http://www.jboss.org/jbossas/downloads/
https://repository.jboss.org/nexus/content/groups/public/org/jboss/as/jboss-as-dist/

What i can find is the source code in GIT:
https://github.com/jbossas/jboss-as/tree/7.1.2.Final

Sailfish OS

The Sailfish OS is a mobile-optimized operating system, baseed on Linux core, support Qt™ platform, and you can develop Android, QT, and HTML5 app for it.

This new mobile OS will release its first phone in China.

https://sailfishos.org/

Tiled (Qt)

Blog Terms: 

Tiled (Qt)
Maybe the source code can be used for GIS? Just mark here

http://www.mapeditor.org/
http://files.mapeditor.org/doxygen/files.html

Use different Symbol style in one layer (Geoserver)

Blog Terms: 

I have one layer in Geoserver, the data query is one table with geometry, there is one column named 'TYPE', which has 3 different type: 'rest', 'park', 'hotel'.
I need set 3 different color for this layer depends on 'TYPE', so custom SLD style should be defined in Geoserver like this:


<?xml version="1.0" encoding="ISO-8859-1" ?>

Pages

Subscribe to RSS - leelight's blog