geoip-java Mailing List for MaxMind GeoIP
Brought to you by:
tjmather
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Thomas J M. <tjm...@ma...> - 2012-07-16 15:05:49
|
I think they are done sequentially. Patches are welcome if you would like the benchmark test to have concurrency tests. As far as I know, no one has reported performance issues with the synchronized code. -TJ On Mon, Jul 16, 2012, at 01:13 PM, Yuval Ryaboy wrote: > BTW, are your performance tests for java based on BenchmarkGeoIP.java > class? > If so, these are not the real concurrency tests because all the calls are > done sequentially. Although more time is spent entering "synchronized" > section no real locks between threads are performed. > > > Thanks, > Yuval > > -----Original Message----- > From: Yuval Ryaboy > Sent: Sunday, July 15, 2012 10:58 > To: 'Thomas J Mather' > Cc: geo...@li... > Subject: RE: [Geoip-java] LookupService - most of the methods are > "synchronized" > > Hi , > > Can you please explain what are the variable that are being protected by > the "synchronized" using the GEOIP_MEMORY_CACHE option. > Maybe we can reduce the amount of protected code by "synchronized" the > relevant lines and this way increase the performance. > > > Thanks a lot, > Yuval > > -----Original Message----- > From: Thomas J Mather [mailto:tjm...@ma...] > Sent: Thursday, July 12, 2012 19:46 > To: Yuval Ryaboy; geo...@li... > Subject: Re: [Geoip-java] LookupService - most of the methods are > "synchronized" > > Even with synchronized methods, the API should still be fast, we > benchmarked it here: > http://www.maxmind.com/app/benchmark > > -TJ > > On Thu, Jul 12, 2012, at 12:06 PM, Yuval Ryaboy wrote: > > Hi All, > > > > I am trying to integrate the java implementation but from what I see > > most of the methods in "LookupService" are "synchronized", which > > promises a real bad performance. > > My question is does anyway have a better implementation or fixed this > > one (I am planning to use memory cache)? > > > > Thanks a lot, > > Yuval > > ---------------------------------------------------------------------- > > -------- > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. > > Discussions will include endpoint security, mobile security and the > > latest in malware threats. > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Geoip-java mailing list > > Geo...@li... > > https://lists.sourceforge.net/lists/listinfo/geoip-java > > |
From: Yuval R. <yuv...@st...> - 2012-07-16 13:13:45
|
BTW, are your performance tests for java based on BenchmarkGeoIP.java class? If so, these are not the real concurrency tests because all the calls are done sequentially. Although more time is spent entering "synchronized" section no real locks between threads are performed. Thanks, Yuval -----Original Message----- From: Yuval Ryaboy Sent: Sunday, July 15, 2012 10:58 To: 'Thomas J Mather' Cc: geo...@li... Subject: RE: [Geoip-java] LookupService - most of the methods are "synchronized" Hi , Can you please explain what are the variable that are being protected by the "synchronized" using the GEOIP_MEMORY_CACHE option. Maybe we can reduce the amount of protected code by "synchronized" the relevant lines and this way increase the performance. Thanks a lot, Yuval -----Original Message----- From: Thomas J Mather [mailto:tjm...@ma...] Sent: Thursday, July 12, 2012 19:46 To: Yuval Ryaboy; geo...@li... Subject: Re: [Geoip-java] LookupService - most of the methods are "synchronized" Even with synchronized methods, the API should still be fast, we benchmarked it here: http://www.maxmind.com/app/benchmark -TJ On Thu, Jul 12, 2012, at 12:06 PM, Yuval Ryaboy wrote: > Hi All, > > I am trying to integrate the java implementation but from what I see > most of the methods in "LookupService" are "synchronized", which > promises a real bad performance. > My question is does anyway have a better implementation or fixed this > one (I am planning to use memory cache)? > > Thanks a lot, > Yuval > ---------------------------------------------------------------------- > -------- > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. > Discussions will include endpoint security, mobile security and the > latest in malware threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Geoip-java mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geoip-java |
From: Yuval R. <yuv...@st...> - 2012-07-15 08:13:48
|
Hi , Can you please explain what are the variable that are being protected by the "synchronized" using the GEOIP_MEMORY_CACHE option. Maybe we can reduce the amount of protected code by "synchronized" the relevant lines and this way increase the performance. Thanks a lot, Yuval -----Original Message----- From: Thomas J Mather [mailto:tjm...@ma...] Sent: Thursday, July 12, 2012 19:46 To: Yuval Ryaboy; geo...@li... Subject: Re: [Geoip-java] LookupService - most of the methods are "synchronized" Even with synchronized methods, the API should still be fast, we benchmarked it here: http://www.maxmind.com/app/benchmark -TJ On Thu, Jul 12, 2012, at 12:06 PM, Yuval Ryaboy wrote: > Hi All, > > I am trying to integrate the java implementation but from what I see > most of the methods in "LookupService" are "synchronized", which > promises a real bad performance. > My question is does anyway have a better implementation or fixed this > one (I am planning to use memory cache)? > > Thanks a lot, > Yuval > ---------------------------------------------------------------------- > -------- > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. > Discussions will include endpoint security, mobile security and the > latest in malware threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Geoip-java mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geoip-java |
From: Thomas J M. <tjm...@ma...> - 2012-07-12 17:11:28
|
Even with synchronized methods, the API should still be fast, we benchmarked it here: http://www.maxmind.com/app/benchmark -TJ On Thu, Jul 12, 2012, at 12:06 PM, Yuval Ryaboy wrote: > Hi All, > > I am trying to integrate the java implementation but from what I see most > of the methods in "LookupService" are "synchronized", which promises a > real bad performance. > My question is does anyway have a better implementation or fixed this one > (I am planning to use memory cache)? > > Thanks a lot, > Yuval > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Geoip-java mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geoip-java |
From: Yuval R. <yuv...@st...> - 2012-07-12 12:21:51
|
Hi All, I am trying to integrate the java implementation but from what I see most of the methods in "LookupService" are "synchronized", which promises a real bad performance. My question is does anyway have a better implementation or fixed this one (I am planning to use memory cache)? Thanks a lot, Yuval |
From: Dejan M. <D....@pa...> - 2011-08-25 14:16:47
|
Dear ladies and gentlemen, We would like to use the GeoIP Java API together with GeoIpCity DB. For some tests I installed localy the lite version of GeoIPCity DB and also downloaded and compiled all classes into a JAR file. This dependency is then used in some of my unit tests (I just wanted to try the API). I loaded the database and created instance of LookupService. // Read binary database from local classpath String fileName = GeoIpApiTest.class.getClassLoader().getResource("GeoLiteCity.dat").getPath(); fileName = fileName.substring(1); // Create lookup service ls = new LookupService(fileName, LookupService.GEOIP_MEMORY_CACHE | LookupService.GEOIP_CHECK_CACHE); Then I tried to call some basic methods like: Country country = ls.getCountry("151.38.39.114"); Unfortunatelly I am always getting ArrayOutOfBoundException: java.lang.ArrayIndexOutOfBoundsException: -12636850 at com.maxmind.geoip.LookupService.getCountry(LookupService.java:503) at com.maxmind.geoip.LookupService.getCountry(LookupService.java:456) We would like to buy the licence for binary database and also to use update functionality with job written in C. Can you help me by this problem? p.s. I also tried to put all java files into default package but this was not working either. Any ideas? Thank you very much for further help. best regards / Mit freundlichen Grüßen Dejan Music Dipl.-Ing. Dejan Music Senior Software Developer paysafecard.com Wertkarten AG Am Euro Platz 2, A-1120 Wien mobile: +43 676 / 765 71 43 skype: dejan.music_paysafecard mail: d....@pa...<mailto:d....@pa...> web: www.paysafecard.com<http://www.paysafecard.com/> Firmenbuch: FN 194434h Handelsgericht Wien ---------------------------------------------------------------------------------------- IMPORTANT CONFIDENTIALITY NOTICE The information in this e-mail is confidential and is intended solely for the addressee. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. Please also contact the sender and delete the material from any computer. |
From: Akwad H. <ken...@ho...> - 2011-06-09 16:45:24
|
Dear great developers, Please kindly help on the subject below. From: Akwad Hussein [mailto:ken...@ho...] Sent: Thursday, June 09, 2011 5:43 PM To: 'geo...@li...' Subject: assistance Good day the great developers, I am currently running a job test which I was ask to submit tomorrow, but I don't have a clear idea of the problem. Please kindly help out. Here is the question bellow. PRACTICAL JAVA TEST: I have attached a zip file containing the files 1. geoip.jar 2. GeoIPLite.dat 3. CountryLookupTest.java These are written by a company called maxmind and are used to work out what country a person comes from based on their IP address. The geoip.jar file is the actual code used to access the database/file which is GeoIPLite. The CountryLookupTest.java is a sample of how to use the classes I would like you to write a class that can determine the country based on the IP address using these files. It should have a function getCountry(String ip) and return the 2 letter country code 1. This class would be used by other classes to determine the country based on an IP address 2. e.g. from a webserver It must 1. Only load the Databasefile once into memory Provide us with 2 classes 1. Your class you use to implement the getCountry Function 2. A second class that instantiates this class and gets the country for a few ip addresses 3. Must be written in java I was provided the three file as an attachments, please how do I go about the question Your assistance will be highly appreciated. Thanks. Akwad. |
From: develop <de...@al...> - 2010-12-17 22:31:14
|
Is there any service or API that provides international dialing codes by Locale or country code? -simeon |
From: develop <de...@al...> - 2010-12-14 10:52:17
|
Hi all, I did not receive a subscription confirmation, that's why I am writing here. Best, -simeon |
From: Thomas J M. <tjm...@ma...> - 2008-04-03 02:39:45
|
I'm not sure - I haven't heard of any such plans to deploy the API to maven2. It would be nice to have though. -TJ ----- Original message ----- From: "Roberto Lo Giacco" <rlo...@sm...> To: geo...@li... Date: Wed, 2 Apr 2008 15:10:27 +0200 Subject: [Geoip-java] Maven2 Repository Support Hi all, is there any plan to deploy the geoip api onto the maven2 central repository on ibiblio? In the past I contributed a maven2 pom for this activity but we never got to a conclusion. -- Roberto Lo Giacco ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Geoip-java mailing list Geo...@li... https://lists.sourceforge.net/lists/listinfo/geoip-java |
From: Roberto Lo G. <rlo...@sm...> - 2008-04-02 13:10:24
|
Hi all, is there any plan to deploy the geoip api onto the maven2 central repository on ibiblio? In the past I contributed a maven2 pom for this activity but we never got to a conclusion. -- Roberto Lo Giacco |
From: Thomas J M. <tjm...@ma...> - 2004-09-09 05:04:10
|
GeoIP Java API 1.1.6 has been released and is available for download: http://www.maxmind.com/download/geoip/api/java/GeoIPJava-1.1.6.zip Here is the changelog for this release: - Fixed problem with postalCode, city and region fields returning null char - Added support for GeoIP Netspeed Database - Added support for GEOIP_MEMORY_CACHE -TJ |